# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1051475279 0 # Node ID b812cf360e49cdf57d6b7de6c16ec5923d872477 # Parent 84f79737b7d9599364afb6c5d3b242d5a7919215 dw_draw_text() now draws the background color on OS/2 as well. diff -r 84f79737b7d9 -r b812cf360e49 os2/dw.c --- a/os2/dw.c Sun Apr 27 20:11:05 2003 +0000 +++ b/os2/dw.c Sun Apr 27 20:27:59 2003 +0000 @@ -6902,7 +6902,10 @@ rcl.yBottom = rcl.yTop - (aptl[TXTBOX_TOPLEFT].y - aptl[TXTBOX_BOTTOMLEFT].y); rcl.xRight = rcl.xLeft + (aptl[TXTBOX_TOPRIGHT].x - aptl[TXTBOX_TOPLEFT].x); - WinDrawText(hps, -1, text, &rcl, DT_TEXTATTRS, DT_TEXTATTRS, DT_VCENTER | DT_LEFT | DT_TEXTATTRS); + if(_background == DW_CLR_DEFAULT) + WinDrawText(hps, -1, text, &rcl, DT_TEXTATTRS, DT_TEXTATTRS, DT_VCENTER | DT_LEFT | DT_TEXTATTRS); + else + WinDrawText(hps, -1, text, &rcl, _internal_color(_foreground), _internal_color(_background), DT_VCENTER | DT_LEFT | DT_ERASERECT); if(!pixmap) WinReleasePS(hps);