comparison 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
comparison
equal deleted inserted replaced
752:4bb432a0f6e0 753:b14fdadd8311
60 Uint32 alpha; 60 Uint32 alpha;
61 Uint32 bpp; 61 Uint32 bpp;
62 }; 62 };
63 63
64 /* Private display data */ 64 /* Private display data */
65 struct SDL_PrivateVideoData { 65 struct SDL_PrivateVideoData
66 {
66 PgDisplaySettings_t mode_settings; 67 PgDisplaySettings_t mode_settings;
67 PtWidget_t *Window; /* used to handle input events */ 68 PtWidget_t *Window; /* used to handle input events */
68 PhImage_t *image; /* used to display image */ 69 PhImage_t *image; /* used to display image */
69 #ifdef HAVE_OPENGL 70 #ifdef HAVE_OPENGL
70 PdOpenGLContext_t* OGLContext; /* OpenGL context */ 71 PdOpenGLContext_t* OGLContext; /* OpenGL context */
94 int old_refresh_rate; /* Stored refresh rate befor fullscreen switch */ 95 int old_refresh_rate; /* Stored refresh rate befor fullscreen switch */
95 96
96 int mouse_relative; 97 int mouse_relative;
97 WMcursor* BlankCursor; 98 WMcursor* BlankCursor;
98 99
99 Uint32 depth; /* current visual depth (not bpp) */ 100 Uint32 depth; /* current visual depth (not bpp) */
100 Uint32 desktopbpp; /* bpp of desktop at the moment of start */ 101 Uint32 desktopbpp; /* bpp of desktop at the moment of start */
101 Uint32 desktoppal; /* palette mode emulation or system */ 102 Uint32 desktoppal; /* palette mode emulation or system */
102 103
103 int currently_fullscreen; 104 int currently_fullscreen;
104 int currently_hided; /* 1 - window hided (minimazed), 0 - normal */ 105 int currently_hided; /* 1 - window hided (minimazed), 0 - normal */
106 int currently_maximized; /* 1 - window hided (minimazed), 0 - normal */
105 107
106 PhEvent_t* event; 108 PhEvent_t* event;
107 SDL_Overlay* overlay; 109 SDL_Overlay* overlay;
108 }; 110 };
109 111
118 #define desktoppal (this->hidden->desktoppal) 120 #define desktoppal (this->hidden->desktoppal)
119 #define savedpal (this->hidden->savedpal) 121 #define savedpal (this->hidden->savedpal)
120 #define syspalph (this->hidden->syspalph) 122 #define syspalph (this->hidden->syspalph)
121 #define currently_fullscreen (this->hidden->currently_fullscreen) 123 #define currently_fullscreen (this->hidden->currently_fullscreen)
122 #define currently_hided (this->hidden->currently_hided) 124 #define currently_hided (this->hidden->currently_hided)
125 #define currently_maximized (this->hidden->currently_maximized)
123 #define event (this->hidden->event) 126 #define event (this->hidden->event)
124 #define current_overlay (this->hidden->overlay) 127 #define current_overlay (this->hidden->overlay)
125 #define desktop_mode (this->hidden->desktop_mode) 128 #define desktop_mode (this->hidden->desktop_mode)
126 #define mouse_relative (this->hidden->mouse_relative) 129 #define mouse_relative (this->hidden->mouse_relative)
127 #define SDL_BlankCursor (this->hidden->BlankCursor) 130 #define SDL_BlankCursor (this->hidden->BlankCursor)