mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user