mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Allow ValueViewers to have a bounding box different from the Style's. This closes #64.
This commit is contained in:
@@ -26,7 +26,7 @@ void InfoValueViewer::draw(RotatedDC& dc) {
|
||||
dc.SetFont(style().font, 1.0);
|
||||
}
|
||||
// draw background
|
||||
RealRect rect = style().getInternalRect();
|
||||
RealRect rect = dc.getInternalRect();
|
||||
dc.DrawRectangle(rect.grow(2));
|
||||
// draw text
|
||||
rect = rect.move(
|
||||
|
||||
Reference in New Issue
Block a user