Revision: 246
http://svn.sourceforge.net/redbutton/?rev=246&view=rev
Author: skilvington
Date: 2007-03-13 07:21:25 -0700 (Tue, 13 Mar 2007)
Log Message:
-----------
get the border width right
Modified Paths:
--------------
redbutton-browser/trunk/MHEGCanvas.c
Modified: redbutton-browser/trunk/MHEGCanvas.c
===================================================================
--- redbutton-browser/trunk/MHEGCanvas.c 2007-03-13 14:06:18 UTC (rev 245)
+++ redbutton-browser/trunk/MHEGCanvas.c 2007-03-13 14:21:25 UTC (rev 246)
@@ -88,13 +88,13 @@
gcvals.foreground = pixel_value(c->pic_format, colour);
XChangeGC(d->dpy, c->gc, GCForeground, &gcvals);
/* top */
- XFillRectangle(d->dpy, c->contents, c->gc, 0, 0, c->width, c->border - 1);
+ XFillRectangle(d->dpy, c->contents, c->gc, 0, 0, c->width, c->border);
/* bottom */
- XFillRectangle(d->dpy, c->contents, c->gc, 0, (c->height - c->border) - 1, c->width, c->border - 1);
+ XFillRectangle(d->dpy, c->contents, c->gc, 0, c->height - c->border, c->width, c->border);
/* left */
- XFillRectangle(d->dpy, c->contents, c->gc, 0, 0, c->border - 1, c->height);
+ XFillRectangle(d->dpy, c->contents, c->gc, 0, 0, c->border, c->height);
/* right */
- XFillRectangle(d->dpy, c->contents, c->gc, (c->width - c->border) - 1, 0, c->border - 1, c->height);
+ XFillRectangle(d->dpy, c->contents, c->gc, c->width - c->border, 0, c->border, c->height);
/* set a clip mask, so no futher drawing will change the border */
clip_rect.x = c->border;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|