comparison 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
comparison
equal deleted inserted replaced
691:609543e2b3a1 692:04dd6c6d7c30
70 PdOpenGLContext_t* OGLContext; /* OpenGL context */ 70 PdOpenGLContext_t* OGLContext; /* OpenGL context */
71 #endif /* HAVE_OPENGL */ 71 #endif /* HAVE_OPENGL */
72 PgColor_t savedpal[_Pg_MAX_PALETTE]; 72 PgColor_t savedpal[_Pg_MAX_PALETTE];
73 PgColor_t syspalph[_Pg_MAX_PALETTE]; 73 PgColor_t syspalph[_Pg_MAX_PALETTE];
74 74
75 struct { 75 struct
76 {
76 PdDirectContext_t* direct_context; 77 PdDirectContext_t* direct_context;
77 PdOffscreenContext_t* offscreen_context; 78 PdOffscreenContext_t* offscreen_context;
78 PdOffscreenContext_t* offscreen_backcontext; 79 PdOffscreenContext_t* offscreen_backcontext;
79 PhDrawContext_t* oldDC; 80 PhDrawContext_t* oldDC;
80 uint8_t* dc_ptr; 81 uint8_t* dc_ptr;
81 unsigned char* CurrentFrameData; 82 unsigned char* CurrentFrameData;
82 unsigned char* FrameData0; 83 unsigned char* FrameData0;
83 unsigned char* FrameData1; 84 unsigned char* FrameData1;
84 int current; 85 int current;
85 long flags; 86 long flags;
86 } ocimage; 87 } ocimage;
87 88
88 PgHWCaps_t graphics_card_caps; /* Graphics card caps at the moment of start */ 89 PgHWCaps_t graphics_card_caps; /* Graphics card caps at the moment of start */
90 PgVideoModeInfo_t desktop_mode; /* Current desktop video mode information */
89 int old_video_mode; /* Stored mode before fullscreen switch */ 91 int old_video_mode; /* Stored mode before fullscreen switch */
90 int old_refresh_rate; /* Stored refresh rate befor fullscreen switch */ 92 int old_refresh_rate; /* Stored refresh rate befor fullscreen switch */
91 93
92 int mouse_relative; 94 int mouse_relative;
93 WMcursor* BlankCursor; 95 WMcursor* BlankCursor;
117 #define syspalph (this->hidden->syspalph) 119 #define syspalph (this->hidden->syspalph)
118 #define currently_fullscreen (this->hidden->currently_fullscreen) 120 #define currently_fullscreen (this->hidden->currently_fullscreen)
119 #define currently_hided (this->hidden->currently_hided) 121 #define currently_hided (this->hidden->currently_hided)
120 #define event (this->hidden->event) 122 #define event (this->hidden->event)
121 #define current_overlay (this->hidden->overlay) 123 #define current_overlay (this->hidden->overlay)
124 #define desktop_mode (this->hidden->desktop_mode)
122 125
123 /* Old variable names */ 126 /* Old variable names */
124 #define mouse_relative (this->hidden->mouse_relative) 127 #define mouse_relative (this->hidden->mouse_relative)
125 #define SDL_BlankCursor (this->hidden->BlankCursor) 128 #define SDL_BlankCursor (this->hidden->BlankCursor)
126 129