diff src/video/photon/SDL_ph_video.h @ 692:04dd6c6d7c30

Date: Fri, 15 Aug 2003 09:13:59 +0300 From: "Mike Gorchak" Subject: Patches for tests and QNX6 Here more fixes for the QNX6 in sdlqnx.diff file: - Spellchecked README.QNX (thanks to Julian Kinraid) - Fixed bugs in fullscreen mode: window region wasn't on top by default, so \ it caused some artifacts to be appeared on the screen, prevent window conten\ ts default filler in Photon while in fullscreen mode, it damages the screen. - Added support for the SDL_VIDEO_WINDOW_POS, SDL_VIDEO_CENTERED env variabl\ es. - Some minor code restructurization.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 23 Aug 2003 23:20:21 +0000
parents 8bedd6d61642
children aaf3b8af6616
line wrap: on
line diff
--- a/src/video/photon/SDL_ph_video.h	Sat Aug 23 23:18:49 2003 +0000
+++ b/src/video/photon/SDL_ph_video.h	Sat Aug 23 23:20:21 2003 +0000
@@ -72,20 +72,22 @@
     PgColor_t savedpal[_Pg_MAX_PALETTE];
     PgColor_t syspalph[_Pg_MAX_PALETTE];
 
-    struct {
+    struct
+    {
         PdDirectContext_t*    direct_context;
         PdOffscreenContext_t* offscreen_context;
         PdOffscreenContext_t* offscreen_backcontext;
         PhDrawContext_t*      oldDC;
         uint8_t*              dc_ptr;
-        unsigned char* CurrentFrameData;
-        unsigned char* FrameData0;
-        unsigned char* FrameData1;
-        int current;
-        long flags;
+        unsigned char*        CurrentFrameData;
+        unsigned char*        FrameData0;
+        unsigned char*        FrameData1;
+        int                   current;
+        long                  flags;
     } ocimage;
 
     PgHWCaps_t graphics_card_caps;  /* Graphics card caps at the moment of start   */
+    PgVideoModeInfo_t desktop_mode; /* Current desktop video mode information      */
     int old_video_mode;             /* Stored mode before fullscreen switch        */
     int old_refresh_rate;           /* Stored refresh rate befor fullscreen switch */
 
@@ -119,6 +121,7 @@
 #define currently_hided      (this->hidden->currently_hided)
 #define event                (this->hidden->event)
 #define current_overlay      (this->hidden->overlay)
+#define desktop_mode         (this->hidden->desktop_mode)
 
 /* Old variable names */
 #define mouse_relative       (this->hidden->mouse_relative)