comparison src/video/bwindow/SDL_sysvideo.cc @ 1658:e49147870aac SDL-1.3

glSDL support
author Sam Lantinga <slouken@libsdl.org>
date Mon, 01 May 2006 06:58:33 +0000
parents 3a8920cc822b
children 782fd950bd46
comparison
equal deleted inserted replaced
1657:5b0805ceb50f 1658:e49147870aac
523 SDL_Win->SetType(B_TITLED_WINDOW); 523 SDL_Win->SetType(B_TITLED_WINDOW);
524 if ( flags & SDL_NOFRAME ) { 524 if ( flags & SDL_NOFRAME ) {
525 current->flags |= SDL_NOFRAME; 525 current->flags |= SDL_NOFRAME;
526 SDL_Win->SetLook(B_NO_BORDER_WINDOW_LOOK); 526 SDL_Win->SetLook(B_NO_BORDER_WINDOW_LOOK);
527 } else { 527 } else {
528 if ( (flags & SDL_RESIZABLE) && !(flags & SDL_OPENGL) ) { 528 if ( (flags & SDL_RESIZABLE) && !(flags & SDL_INTERNALOPENGL) ) {
529 current->flags |= SDL_RESIZABLE; 529 current->flags |= SDL_RESIZABLE;
530 /* We don't want opaque resizing (TM). :-) */ 530 /* We don't want opaque resizing (TM). :-) */
531 SDL_Win->SetFlags(B_OUTLINE_RESIZE); 531 SDL_Win->SetFlags(B_OUTLINE_RESIZE);
532 } else { 532 } else {
533 SDL_Win->SetFlags(B_NOT_RESIZABLE|B_NOT_ZOOMABLE); 533 SDL_Win->SetFlags(B_NOT_RESIZABLE|B_NOT_ZOOMABLE);
534 } 534 }
535 } 535 }
536 536
537 if ( flags & SDL_OPENGL ) { 537 if ( flags & SDL_INTERNALOPENGL ) {
538 current->flags |= SDL_OPENGL; 538 current->flags |= SDL_INTERNALOPENGL;
539 current->pitch = 0; 539 current->pitch = 0;
540 current->pixels = NULL; 540 current->pixels = NULL;
541 _this->UpdateRects = NULL; 541 _this->UpdateRects = NULL;
542 } else { 542 } else {
543 /* Create the BBitmap framebuffer */ 543 /* Create the BBitmap framebuffer */