Ticket #669 (closed task: fixed)

Opened 6 years ago

Last modified 6 years ago

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:


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. */
   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

comment:1 Changed 6 years ago by helios2000

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.