projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7362c08
)
use the surface's area
author
Dana Jansens
<danakj@orodu.net>
Mon, 26 May 2003 21:18:23 +0000
(21:18 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 26 May 2003 21:18:23 +0000
(21:18 +0000)
render2/planar.c
patch
|
blob
|
history
diff --git
a/render2/planar.c
b/render2/planar.c
index a6a321dde7cd42509a2e0d6e6adafc61264e3d0e..05498bbda321697569c725e6cd8f4875a583ac80 100644
(file)
--- a/
render2/planar.c
+++ b/
render2/planar.c
@@
-66,12
+66,18
@@
static void copy_parent(struct RrSurface *sur)
void RrPlanarPaint(struct RrSurface *sur, int x, int y, int w, int h)
{
struct RrColor *pri, *sec, avg;
+ int x, y, w, h;
copy_parent(sur);
pri = &RrPlanarPrimaryColor(sur);
sec = &RrPlanarSecondaryColor(sur);
+ x = RrSurfaceX(sur);
+ y = RrSurfaceY(sur);
+ w = RrSurfaceWidth(sur);
+ h = RrSurfaceHeight(sur);
+
switch (RrPlanarColorType(sur)) {
case RR_PLANAR_NONE:
return;