diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2010-10-12 23:35:37 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2010-10-12 23:35:37 +0200 |
commit | 83ad1df84039e24257ffa5943132cfd908f36cd4 (patch) | |
tree | 3e5131fab5856bb6a84da1f445d55f287d9d4f5b /crawl-ref/source/windowmanager-sdl.h | |
parent | cec1b6e8d63ca618c3a2b93623a28d89cd321165 (diff) | |
download | crawl-ref-83ad1df84039e24257ffa5943132cfd908f36cd4.tar.gz crawl-ref-83ad1df84039e24257ffa5943132cfd908f36cd4.zip |
New option tile_align_at_top (windows only)
When set, the window will be aligned at the top of the screen instead of being centered (avoid taskbar overlap, see mantis 2043).
In theory, it would be possible to give the player full control of the window position, but it's more complicated and I don't see any use for it. It can easily be added if anyone ever request it.
Diffstat (limited to 'crawl-ref/source/windowmanager-sdl.h')
-rw-r--r-- | crawl-ref/source/windowmanager-sdl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/windowmanager-sdl.h b/crawl-ref/source/windowmanager-sdl.h index 28780f97e6..e9eb881471 100644 --- a/crawl-ref/source/windowmanager-sdl.h +++ b/crawl-ref/source/windowmanager-sdl.h @@ -41,6 +41,7 @@ public: virtual void swap_buffers(); virtual int screen_width() const; virtual int screen_height() const; + virtual int desktop_width() const; // Texture loading virtual bool load_texture(GenericTexture *tex, const char *filename, @@ -55,6 +56,7 @@ protected: SDL_Surface *m_context; const SDL_VideoInfo* video_info; + int _desktop_width; }; #endif // USE_SDL |