Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv13436/port/src/cbits/GTK
Modified Files:
Canvas.c
Log Message:
The implementation of Canvas are changed for better performance. setPenColor, setPenBackColor, setPenHatchStyle and all other setPen* functions are replaced with single function which changes all attributes of Canvas in single step.
Index: Canvas.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Canvas.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Canvas.c 30 Jan 2003 20:43:25 -0000 1.7
--- Canvas.c 3 Feb 2003 16:53:40 -0000 1.8
***************
*** 22,28 ****
\*------------------------------------*/
- void ChangeLineAttributes(CanvasHandle canvas);
- void ChangePenDash(CanvasHandle canvas);
-
void osInitCanvas (int size, int function,
unsigned int pcolor,
--- 22,25 ----
***************
*** 43,49 ****
[...1009 lines suppressed...]
*** 906,923 ****
- void osUndrawPolygon(PolygonHandle arr, CanvasHandle canvas)
- {
- if (canvas->drawable) gdk_draw_polygon(canvas->drawable,canvas->theEraseGC,FALSE,arr->data,arr->count);
- } /* osUndrawPolygon */
-
void osFillPolygon (PolygonHandle arr, CanvasHandle canvas)
{
if (canvas->drawable) gdk_draw_polygon(canvas->drawable,canvas->theFillGC,TRUE,arr->data,arr->count);
} /* osFillPolygon */
-
- void osErasePolygon (PolygonHandle arr, CanvasHandle canvas)
- {
- if (canvas->drawable) gdk_draw_polygon(canvas->drawable,canvas->theUnfillGC,TRUE,arr->data,arr->count);
- } /* osErasePolygon */
CanvasHandle osGetTemporaryCanvas()
--- 641,648 ----
|