paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/test dblbuffer.cpp,1.4.2.1,1.4.2.2


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/test dblbuffer.cpp,1.4.2.1,1.4.2.2
Date: Wed, 19 Jun 2002 05:17:15 -0400

Update of /cvsroot/paragui/paragui/test
In directory subversions:/tmp/cvs-serv13765/test

Modified Files:
      Tag: devel-opengl
        dblbuffer.cpp 
Log Message:
dblbuffer demo now shows shomething on the screen



Index: dblbuffer.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/test/dblbuffer.cpp,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -C2 -r1.4.2.1 -r1.4.2.2
*** dblbuffer.cpp       18 Jun 2002 22:40:39 -0000      1.4.2.1
--- dblbuffer.cpp       19 Jun 2002 09:17:13 -0000      1.4.2.2
***************
*** 145,149 ****
  
        numsprites = NUM_SPRITES;
!       videoflags = SDL_SWSURFACE|SDL_DOUBLEBUF | SDL_ANYFORMAT;
        width = 640;
        height = 480;
--- 145,149 ----
  
        numsprites = NUM_SPRITES;
!       videoflags = SDL_SWSURFACE | SDL_DOUBLEBUF;
        width = 640;
        height = 480;
***************
*** 169,172 ****
--- 169,178 ----
                if ( strcmp(argv[argc], "-hw") == 0 ) {
                        videoflags ^= SDL_HWSURFACE;
+               } else
+               if ( strcmp(argv[argc], "-gl") == 0 ) {
+                       // dont ask why but it works -- Alex
+                       videoflags ^= SDL_GLSDL;
+                       videoflags ^= SDL_HWSURFACE;
+                       videoflags ^= SDL_DOUBLEBUF;
                } else
                if ( strcmp(argv[argc], "-flip") == 0 ) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]