diff options
| author | 2010-10-13 06:20:10 +0000 | |
|---|---|---|
| committer | 2010-10-13 06:20:10 +0000 | |
| commit | 3beb0ec2462e3251000e4c479bbaeaf775cb44d2 (patch) | |
| tree | 8ede7cad7423199a79f6abc18df352d564d49384 /src/emu/cheat.c | |
| parent | f391c5f8d797a190a789ab3bc35e0e3fbce5df29 (diff) | |
Converted render.c objects into C++ objects. Updated all callers.
Diffstat (limited to 'src/emu/cheat.c')
| -rw-r--r-- | src/emu/cheat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cheat.c b/src/emu/cheat.c index 91cd1fcf141..23b3dd28804 100644 --- a/src/emu/cheat.c +++ b/src/emu/cheat.c @@ -522,7 +522,7 @@ void cheat_render_text(running_machine *machine, render_container *container) { /* output the text */ ui_draw_text_full(container, cheatinfo->output[linenum], - 0.0f, (float)linenum * ui_get_line_height(), 1.0f, + 0.0f, (float)linenum * ui_get_line_height(*machine), 1.0f, cheatinfo->justify[linenum], WRAP_NEVER, DRAW_OPAQUE, ARGB_WHITE, ARGB_BLACK, NULL, NULL); } @@ -901,7 +901,7 @@ static void cheat_frame(running_machine &machine) /* set up for accumulating output */ cheatinfo->lastline = 0; - cheatinfo->numlines = floor(1.0f / ui_get_line_height()); + cheatinfo->numlines = floor(1.0f / ui_get_line_height(machine)); cheatinfo->numlines = MIN(cheatinfo->numlines, ARRAY_LENGTH(cheatinfo->output)); for (linenum = 0; linenum < ARRAY_LENGTH(cheatinfo->output); linenum++) cheatinfo->output[linenum].reset(); |
