diff options
author | 2012-01-16 11:06:28 +0000 | |
---|---|---|
committer | 2012-01-16 11:06:28 +0000 | |
commit | 59d84eb1b05c653c1e5c727e648e807bc8340baf (patch) | |
tree | 837413310dbe2d9b678860c072206bb244e8e693 /src/emu/render.h | |
parent | 051af55fa90955e11ba7fb08b586ba3227c4f7d1 (diff) |
Fix several rendering issues with artwork, introduced in the
recent changes.
Also, did a pass through the code to take advantage of new
methods available on rectangles.
Diffstat (limited to 'src/emu/render.h')
-rw-r--r-- | src/emu/render.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/render.h b/src/emu/render.h index 060c60643c7..d5444b57b2c 100644 --- a/src/emu/render.h +++ b/src/emu/render.h @@ -190,6 +190,9 @@ struct render_bounds float y0; // topmost Y coordinate float x1; // rightmost X coordinate float y1; // bottommost Y coordinate + + float width() const { return x1 - x0; } + float height() const { return y1 - y0; } }; |