Advertisement
Guest User

Untitled

a guest
May 27th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. diff --git a/src/emu/ui/ui.c b/src/emu/ui/ui.c
  2. index c3041a7..0eee040 100644
  3. --- a/src/emu/ui/ui.c
  4. +++ b/src/emu/ui/ui.c
  5. @@ -694,6 +694,9 @@ void ui_manager::draw_text_full(render_container *container, const char *origs,
  6. break;
  7.  
  8. curwidth -= get_font()->char_width(lineheight, aspect, schar);
  9. + // if back to 0, there is no space to draw even a single char
  10. + if (curwidth <= 0)
  11. + break;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement