diff options
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; } }; |