always draw checkerboard behind default image

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1462 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-08-02 20:53:09 +00:00
parent 0625cd0aff
commit e1d9437320
+3 -2
View File
@@ -109,10 +109,11 @@ Bitmap ImageValueViewer::imagePlaceholder(const Rotation& rot, UInt w, UInt h, c
RealRect rect(0,0,w,h);
RotatedDC dc(mdc, 0, rect, 1.0, QUALITY_AA);
// Draw (checker) background
if (!background.Ok() || background.HasAlpha()) {
draw_checker(dc, rect);
}
if (background.Ok()) {
dc.DrawImage(background, RealPoint(0,0));
} else {
draw_checker(dc, rect);
}
// Draw text
if (editing) {