comparison os2/dw.c @ 376:b812cf360e49

dw_draw_text() now draws the background color on OS/2 as well.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 27 Apr 2003 20:27:59 +0000
parents 39983df2b93d
children d8176c73a081
comparison
equal deleted inserted replaced
375:84f79737b7d9 376:b812cf360e49
6900 rcl.xLeft = x; 6900 rcl.xLeft = x;
6901 rcl.yTop = height - y; 6901 rcl.yTop = height - y;
6902 rcl.yBottom = rcl.yTop - (aptl[TXTBOX_TOPLEFT].y - aptl[TXTBOX_BOTTOMLEFT].y); 6902 rcl.yBottom = rcl.yTop - (aptl[TXTBOX_TOPLEFT].y - aptl[TXTBOX_BOTTOMLEFT].y);
6903 rcl.xRight = rcl.xLeft + (aptl[TXTBOX_TOPRIGHT].x - aptl[TXTBOX_TOPLEFT].x); 6903 rcl.xRight = rcl.xLeft + (aptl[TXTBOX_TOPRIGHT].x - aptl[TXTBOX_TOPLEFT].x);
6904 6904
6905 WinDrawText(hps, -1, text, &rcl, DT_TEXTATTRS, DT_TEXTATTRS, DT_VCENTER | DT_LEFT | DT_TEXTATTRS); 6905 if(_background == DW_CLR_DEFAULT)
6906 WinDrawText(hps, -1, text, &rcl, DT_TEXTATTRS, DT_TEXTATTRS, DT_VCENTER | DT_LEFT | DT_TEXTATTRS);
6907 else
6908 WinDrawText(hps, -1, text, &rcl, _internal_color(_foreground), _internal_color(_background), DT_VCENTER | DT_LEFT | DT_ERASERECT);
6906 6909
6907 if(!pixmap) 6910 if(!pixmap)
6908 WinReleasePS(hps); 6911 WinReleasePS(hps);
6909 } 6912 }
6910 6913