Move ui_add_gadget_scrollbar arrows off stack

This commit is contained in:
Kp 2015-04-02 02:36:56 +00:00
parent 36e1612ecb
commit 2f92078413

View file

@ -54,10 +54,8 @@ std::unique_ptr<UI_GADGET_SCROLLBAR> ui_add_gadget_scrollbar(UI_DIALOG * dlg, sh
{ {
int tw, th, taw; int tw, th, taw;
char up[2]; auto &up = "\x1e";
char down[2]; auto &down = "\x1f";
up[0] = 30; up[1] = 0;
down[0] = 31; down[1] = 0;
gr_get_string_size( up, &tw, &th, &taw ); gr_get_string_size( up, &tw, &th, &taw );