diff src/video/photon/SDL_ph_video.h @ 753:b14fdadd8311

Date: Thu, 4 Dec 2003 07:48:40 +0200 From: "Mike Gorchak" Subject: SDL/QNX6 new patch Here in attachment my patch for the SDL/QNX6 again :) It contain non-crtitical/cosmetic fixes: 1. Fixed window centering at other than the first consoles. 2. Fixed window centering algorithm in case when window height or width are greater than the desktop resolution. 3. Fixed window positioning on other than the first consoles. 4. Fixed occasional input focus lost when switching to fullscreen. 5. Removed the Photon's default chroma color for the overlays, added RGB(12, 6, 12) color instead (very dark pink). 6. Added more checks to the YUV overlay code (fixed crashes during resolution mode switches). 7. Added support for Enter/Backspace keys in unicode mode (used by Maelstrom and by other games). 8. Fixed window restore/maximize function. It works, finally.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 10 Dec 2003 12:35:56 +0000
parents aaf3b8af6616
children b8d311d90021
line wrap: on
line diff
--- a/src/video/photon/SDL_ph_video.h	Wed Dec 10 12:32:38 2003 +0000
+++ b/src/video/photon/SDL_ph_video.h	Wed Dec 10 12:35:56 2003 +0000
@@ -62,7 +62,8 @@
 };
 
 /* Private display data */
-struct SDL_PrivateVideoData {
+struct SDL_PrivateVideoData
+{
     PgDisplaySettings_t mode_settings;	
     PtWidget_t *Window;                  /* used to handle input events */
     PhImage_t *image;	                 /* used to display image       */
@@ -96,12 +97,13 @@
     int mouse_relative;
     WMcursor* BlankCursor;
 
-    Uint32 depth;	            /* current visual depth (not bpp)           */
-    Uint32 desktopbpp;              /* bpp of desktop at the moment of start    */
-    Uint32 desktoppal;              /* palette mode emulation or system         */
+    Uint32 depth;	            /* current visual depth (not bpp)              */
+    Uint32 desktopbpp;              /* bpp of desktop at the moment of start       */
+    Uint32 desktoppal;              /* palette mode emulation or system            */
 
     int currently_fullscreen;
-    int currently_hided;        /* 1 - window hided (minimazed), 0 - normal */
+    int currently_hided;            /* 1 - window hided (minimazed), 0 - normal    */
+    int currently_maximized;        /* 1 - window hided (minimazed), 0 - normal    */
 
     PhEvent_t* event;
     SDL_Overlay* overlay;
@@ -120,6 +122,7 @@
 #define syspalph             (this->hidden->syspalph)
 #define currently_fullscreen (this->hidden->currently_fullscreen)
 #define currently_hided      (this->hidden->currently_hided)
+#define currently_maximized  (this->hidden->currently_maximized)
 #define event                (this->hidden->event)
 #define current_overlay      (this->hidden->overlay)
 #define desktop_mode         (this->hidden->desktop_mode)