[xiph-commits] r12513 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Thu Feb 22 04:15:58 PST 2007
Author: xiphmont
Date: 2007-02-22 04:15:57 -0800 (Thu, 22 Feb 2007)
New Revision: 12513
Modified:
trunk/sushivision/panel-1d.c
Log:
Correct a bug where 1d plot cannot draw a checked background; bug was introduced with locking changes in 1d remap.
Modified: trunk/sushivision/panel-1d.c
===================================================================
--- trunk/sushivision/panel-1d.c 2007-02-22 11:57:57 UTC (rev 12512)
+++ trunk/sushivision/panel-1d.c 2007-02-22 12:15:57 UTC (rev 12513)
@@ -72,6 +72,7 @@
cairo_surface_t *cs = cairo_surface_create_similar(back,CAIRO_CONTENT_COLOR,
cairo_image_surface_get_width(back),
cairo_image_surface_get_height(back));
+ ucolor *lback = (ucolor *)cairo_image_surface_get_data(cs);
cairo_t *c = cairo_create(cs);
int xi,i,j;
int pw = plot->x.pixels;
@@ -110,10 +111,10 @@
case SUSHIV_BG_BLACK:
cairo_set_source_rgb (c, 0,0,0);
cairo_paint(c);
- break;
+ break;
case SUSHIV_BG_CHECKS:
for(i=0;i<ph;i++)
- render_checks((ucolor *)plot->datarect+pw*i, pw, i);
+ render_checks(lback+pw*i, pw, i);
break;
}
More information about the commits
mailing list