Mercurial > sdl-ios-xcode
comparison src/video/bwindow/SDL_sysvideo.cc @ 206:b69bb2a368a0
Fixed flashing the screen when creating a window on BeOS
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 14 Oct 2001 20:30:10 +0000 |
parents | 7be1046c4a68 |
children | e8157fcb3114 |
comparison
equal
deleted
inserted
replaced
205:13161d3d349d | 206:b69bb2a368a0 |
---|---|
391 fullscreen = 0; | 391 fullscreen = 0; |
392 SDL_Win->SetFullScreen(fullscreen); | 392 SDL_Win->SetFullScreen(fullscreen); |
393 } | 393 } |
394 } | 394 } |
395 } | 395 } |
396 if ( ! fullscreen ) { | 396 if ( was_fullscreen && ! fullscreen ) { |
397 bscreen.SetMode(&saved_mode); | 397 bscreen.SetMode(&saved_mode); |
398 } | 398 } |
399 | 399 |
400 if ( SDL_Win->Lock() ) { | 400 if ( SDL_Win->Lock() ) { |
401 int xoff, yoff; | 401 int xoff, yoff; |
483 if ( flags & SDL_OPENGL ) { | 483 if ( flags & SDL_OPENGL ) { |
484 current->flags |= SDL_OPENGL; | 484 current->flags |= SDL_OPENGL; |
485 current->pitch = 0; | 485 current->pitch = 0; |
486 current->pixels = NULL; | 486 current->pixels = NULL; |
487 _this->UpdateRects = NULL; | 487 _this->UpdateRects = NULL; |
488 // _this->ToggleFullScreen = NULL; | |
489 } else { | 488 } else { |
490 /* Create the BBitmap framebuffer */ | 489 /* Create the BBitmap framebuffer */ |
491 bounds.top = 0; bounds.left = 0; | 490 bounds.top = 0; bounds.left = 0; |
492 bounds.right = width-1; | 491 bounds.right = width-1; |
493 bounds.bottom = height-1; | 492 bounds.bottom = height-1; |