paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/src/draw gradient.cpp,1.3,1.3.6.1


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/draw gradient.cpp,1.3,1.3.6.1
Date: Mon, 17 Jun 2002 04:02:01 -0400

Update of /cvsroot/paragui/paragui/src/draw
In directory subversions:/tmp/cvs-serv1058/src/draw

Modified Files:
      Tag: devel-1-0
        gradient.cpp 
Log Message:
added surface locking for text rendering and gradient drawing.
cached surfaces will be hw surfaces if possible.



Index: gradient.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/draw/gradient.cpp,v
retrieving revision 1.3
retrieving revision 1.3.6.1
diff -C2 -r1.3 -r1.3.6.1
*** gradient.cpp        15 Apr 2002 13:35:35 -0000      1.3
--- gradient.cpp        17 Jun 2002 08:01:56 -0000      1.3.6.1
***************
*** 104,107 ****
--- 104,111 ----
        int oy = drawrect.y - rect.y;
  
+       if(SDL_MUSTLOCK(surface)) {
+               SDL_LockSurface(surface);
+       }               
+ 
        // color space vectors
        v00 = ((ur.r - ul.r) * 256) / w;
***************
*** 215,217 ****
--- 219,224 ----
        }
  
+       if(SDL_MUSTLOCK(surface)) {
+               SDL_UnlockSurface(surface);
+       }               
  }




reply via email to

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