modify line warning

This commit is contained in:
georges 2000-12-01 04:12:50 +00:00
parent d4a45b2c74
commit e7c94bfa9a

View File

@ -990,8 +990,11 @@ draw_line(const GeomLine* geom) {
#endif
#ifdef _DEBUG
if(geom->get_width()!=1.0f) {
dxgsg_cat.error() << "DX does not support drawing lines with a non-1.0 pixel width!!\n";
static BOOL bPrintedMsg=FALSE;
if(!bPrintedMsg && (geom->get_width()!=1.0f)) {
bPrintedMsg=TRUE;
dxgsg_cat.warning() << "DX does not support drawing lines with a non-1.0 pixel width, setting width to 1.0!\n";
}
#endif