mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
drawBegin sig change
This commit is contained in:
parent
71c91188e0
commit
4c693e0bb8
2 changed files with 9 additions and 8 deletions
|
@ -185,7 +185,7 @@ gtk_draw_destroyCtxt( DrawCtx* p_dctx )
|
|||
} /* draw_setup */
|
||||
#endif
|
||||
|
||||
static void
|
||||
static XP_Bool
|
||||
gtk_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
||||
{
|
||||
GdkRectangle gdkrect;
|
||||
|
@ -198,10 +198,7 @@ gtk_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
|||
++gdkrect.height;
|
||||
gdk_gc_set_clip_rectangle( dctx->drawGC, &gdkrect );
|
||||
|
||||
/* gdk_draw_rectangle( DRAW_WHAT(dctx), */
|
||||
/* dctx->drawGC, FALSE, */
|
||||
/* rect->left, rect->top, rect->width, rect->height ); */
|
||||
|
||||
return XP_TRUE;
|
||||
} /* draw_finish */
|
||||
|
||||
static void
|
||||
|
|
|
@ -95,7 +95,7 @@ bitmapInRect( PalmDrawCtx* dctx, Int16 resID, XP_Rect* rectP )
|
|||
drawBitmapAt( (DrawCtx*)dctx, resID, left, top );
|
||||
} /* bitmapInRect */
|
||||
|
||||
static void
|
||||
static XP_Bool
|
||||
palm_common_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
||||
{
|
||||
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
|
||||
|
@ -103,10 +103,11 @@ palm_common_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
|||
if ( !globals->gState.showGrid ) {
|
||||
WinDrawRectangleFrame(rectangleFrame, (RectangleType*)rect);
|
||||
}
|
||||
return XP_TRUE;
|
||||
} /* palm_common_draw_boardBegin */
|
||||
|
||||
#ifdef COLOR_SUPPORT
|
||||
static void
|
||||
static XP_Bool
|
||||
palm_clr_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
||||
{
|
||||
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
|
||||
|
@ -118,6 +119,7 @@ palm_clr_draw_boardBegin( DrawCtx* p_dctx, XP_Rect* rect, XP_Bool hasfocus )
|
|||
WinSetForeColor( dctx->drawingPrefs->drawColors[COLOR_BLACK] );
|
||||
WinSetTextColor( dctx->drawingPrefs->drawColors[COLOR_BLACK] );
|
||||
WinSetBackColor( dctx->drawingPrefs->drawColors[COLOR_WHITE] );
|
||||
return XP_TRUE;
|
||||
} /* palm_clr_draw_boardBegin */
|
||||
|
||||
static void
|
||||
|
@ -933,11 +935,13 @@ static void
|
|||
palm_draw_drawMiniWindow( DrawCtx* p_dctx, unsigned char* text,
|
||||
XP_Rect* rect, void** closureP )
|
||||
{
|
||||
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
|
||||
RectangleType localR = *(RectangleType*)rect;
|
||||
XP_U16 ignoreErr;
|
||||
XP_Bool hasClosure = !!closureP;
|
||||
MiniWinData* data = (MiniWinData*)(hasClosure? *closureP: NULL);
|
||||
#ifdef MEM_DEBUG
|
||||
PalmDrawCtx* dctx = (PalmDrawCtx*)p_dctx;
|
||||
#endif
|
||||
|
||||
if ( hasClosure ) {
|
||||
if ( !data ) {
|
||||
|
|
Loading…
Reference in a new issue