comparison src/video/bwindow/SDL_BWin.h @ 4012:4e29535b821b SDL-1.2

Fixed bug #360 Fixed fullscreen video modes and improved the mouse grab code.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 07 Jul 2007 19:20:28 +0000
parents 678576473849
children 5804139bdf0b
comparison
equal deleted inserted replaced
4011:f5794774970d 4012:4e29535b821b
146 Unlock(); 146 Unlock();
147 return(retval); 147 return(retval);
148 } 148 }
149 virtual void SetBitmap(BBitmap *bitmap) { 149 virtual void SetBitmap(BBitmap *bitmap) {
150 SDL_View->SetBitmap(bitmap); 150 SDL_View->SetBitmap(bitmap);
151 }
152 virtual void SetXYOffset(int x, int y) {
153 #if SDL_VIDEO_OPENGL
154 if ( the_view == SDL_GLView ) {
155 return;
156 }
157 #endif
158 SDL_View->SetXYOffset(x, y);
159 }
160 virtual void GetXYOffset(int &x, int &y) {
161 #if SDL_VIDEO_OPENGL
162 if ( the_view == SDL_GLView ) {
163 x = 0;
164 y = 0;
165 return;
166 }
167 #endif
168 SDL_View->GetXYOffset(x, y);
169 }
170 virtual void GetXYOffset(float &x, float &y) {
171 #if SDL_VIDEO_OPENGL
172 if ( the_view == SDL_GLView ) {
173 x = 0.0f;
174 y = 0.0f;
175 return;
176 }
177 #endif
178 SDL_View->GetXYOffset(x, y);
151 } 179 }
152 virtual bool BeginDraw(void) { 180 virtual bool BeginDraw(void) {
153 return(Lock()); 181 return(Lock());
154 } 182 }
155 virtual void DrawAsync(BRect updateRect) { 183 virtual void DrawAsync(BRect updateRect) {