Update of /cvsroot/htoolkit/port/src/cbits/GTK
In directory sc8-pr-cvs1:/tmp/cvs-serv31907/src/cbits/GTK
Modified Files:
Canvas.c
Log Message:
Added new context - theEraseGC. The new context is used for screen clearing.
Index: Canvas.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/GTK/Canvas.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Canvas.c 10 Feb 2003 22:42:09 -0000 1.9
--- Canvas.c 8 Jun 2003 21:11:48 -0000 1.10
***************
*** 1,690 ****
! #include "Types.h"
! #include "Canvas.h"
! #include "Font.h"
! #include "Internals.h"
!
! int osMMtoVPixels(double mm)
! {
! return (int) ((mm*gdk_screen_height())/gdk_screen_height_mm());
! }
!
[...1346 lines suppressed...]
! } /* osDrawBitmap */
!
! void osSetFont (FontHandle font, CanvasHandle canvas)
! {
! canvas->theFont = font;
! } /* osSetFont */
!
! void osGetResolution(CanvasHandle canvas, int *xResP, int *yResP)
! {
! *xResP = gdk_screen_width();
! *yResP = gdk_screen_height();
! } /* osGetResolution */
!
! void osGetScaleFactor(CanvasHandle canvas, int *nh, int *dh, int *nv, int *dv)
! {
! *nh = 1;
! *dh = 1;
! *nv = 1;
! *dv = 1;
! } /* osGetScaleFactor */
|