From 54ddc85bd389fb3ba1da5e131de908ef61801ac8 Mon Sep 17 00:00:00 2001 From: cxl Date: Thu, 7 May 2009 17:11:58 +0000 Subject: [PATCH] Minor fix git-svn-id: svn://ultimatepp.org/upp/trunk@1131 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/ImageWin32.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uppsrc/Draw/ImageWin32.cpp b/uppsrc/Draw/ImageWin32.cpp index eedf08219..8e106c8f1 100644 --- a/uppsrc/Draw/ImageWin32.cpp +++ b/uppsrc/Draw/ImageWin32.cpp @@ -238,8 +238,7 @@ void Image::Data::Paint(Draw& w, int x, int y, const Rect& src, Color c) w.DrawRect(x, y, sz.cx, sz.cy, c); return; } - if(GetKind() == IMAGE_OPAQUE && paintcount == 0 && sr == Rect(sz) && !w.IsMetaFile() - && IsWinNT() && !w.IsPrinter()) { + if(GetKind() == IMAGE_OPAQUE && paintcount == 0 && sr == Rect(sz) && IsWinNT() && w.IsGui()) { LTIMING("Image Opaque direct set"); SetSurface(w, x, y, sz.cx, sz.cy, buffer); paintcount++;