summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uigfx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/uigfx.c')
-rw-r--r--src/emu/uigfx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/uigfx.c b/src/emu/uigfx.c
index 1717a9d137b..e3d5abe52fb 100644
--- a/src/emu/uigfx.c
+++ b/src/emu/uigfx.c
@@ -717,10 +717,7 @@ static void gfxset_update_bitmap(running_machine &machine, ui_gfx_state *state,
rectangle cellbounds;
/* make a rect that covers this row */
- cellbounds.min_x = 0;
- cellbounds.max_x = state->bitmap->width() - 1;
- cellbounds.min_y = y * cellypix;
- cellbounds.max_y = (y + 1) * cellypix - 1;
+ cellbounds.set(0, state->bitmap->width() - 1, y * cellypix, (y + 1) * cellypix - 1);
/* only display if there is data to show */
if (state->gfxset.offset[set] + y * xcells < gfx->total_elements)