Ticket #669 (closed task: fixed)
Query used desktop screen resolution
| Reported by: | Kilian] | Owned by: | FIFE |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.3.4 |
| Component: | engine/core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Time planned: | ||
| Time remaining: | Time spent: |
Description
We want to use the desktop screen resolution to start the application with most comfortable resolution for the user.
A possible way to get this information is to use SDL.
/* Get desktop dimensions. */ #if SDL_VERSION_ATLEAST(1,2,10) const SDL_VideoInfo *vidinfo = SDL_GetVideoInfo(); gl_screen.desktop_w = vidinfo->current_w; gl_screen.desktop_h = vidinfo->current_h; #else /* #elif SDL_VERSION_ATLEAST(1,2,10) */ gl_screen.desktop_w = 0; gl_screen.desktop_h = 0; #endif /* #elif SDL_VERSION_ATLEAST(1,2,10) */
Change History
Note: See
TracTickets for help on using
tickets.

(In [4013]) * Added getDesktopHeight() and getDesktopWidth() to DeviceCaps?. closes #669