From dcdc0127cd5edf2e2f7f9d0d49a4ab5d93a94986 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 28 Oct 2001 05:08:21 +0000 Subject: Hid implementation of Surface. Changed DrawText to DrawTextNoClip to avoid name clash with macro. --- include/Platform.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/Platform.h b/include/Platform.h index 0beede070..5281260c4 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -199,10 +199,11 @@ class Palette { #if PLAT_GTK void *allocatedPalette; // GdkColor * int allocatedLen; -#elif PLAT_WIN - void *hpal; #endif public: +#if PLAT_WIN + void *hpal; +#endif bool allowRealization; Palette(); @@ -277,7 +278,7 @@ public: virtual void Ellipse(PRectangle rc, ColourAllocated fore, ColourAllocated back)=0; virtual void Copy(PRectangle rc, Point from, Surface &surfaceSource)=0; - virtual void DrawText(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0; + virtual void DrawTextNoClip(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0; virtual void DrawTextClipped(PRectangle rc, Font &font_, int ybase, const char *s, int len, ColourAllocated fore, ColourAllocated back)=0; virtual void MeasureWidths(Font &font_, const char *s, int len, int *positions)=0; virtual int WidthText(Font &font_, const char *s, int len)=0; -- cgit v1.2.3