[Top][All Lists]
[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);
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/draw gradient.cpp,1.3,1.3.6.1,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/test stress1.cpp,NONE,1.1.2.1 stress2.cpp,NONE,1.1.2.1 Makefile.am,1.2.6.2,1.2.6.3 layouttest.cpp,1.1.1.1,1.1.1.1.6.1
- Next by Date:
[paragui-cvs] CVS: paragui/test paratest.cpp,1.2.6.2,1.2.6.3
- Previous by thread:
[paragui-cvs] CVS: paragui/test stress1.cpp,NONE,1.1.2.1 stress2.cpp,NONE,1.1.2.1 Makefile.am,1.2.6.2,1.2.6.3 layouttest.cpp,1.1.1.1,1.1.1.1.6.1
- Next by thread:
[paragui-cvs] CVS: paragui/test paratest.cpp,1.2.6.2,1.2.6.3
- Index(es):