static void SelectLeftSliderWidth( struct Tracker_Windows *window, ReqType reqtype ){ char temp[100]; int newwidth; sprintf(temp,"New Width (now %d) >",window->leftslider.width); newwidth=GFX_GetInteger( window, reqtype, temp, 4, window->wblock->temponodearea.x2, true ); if(newwidth<4) return; window->leftslider.width=newwidth; UpdateAllWBlockCoordinates(window); window->blt.clear_do=false; window->must_redraw = true; SETTINGS_write_int("left_slider_width",newwidth); }
static void SelectBottomSliderHeight( struct Tracker_Windows *window, ReqType reqtype ){ char temp[100]; int newwidth; sprintf(temp,"New Height (Now: %d. Use 0 to set automatic value) >",window->bottomslider_height); newwidth=GFX_GetInteger( window, reqtype, temp, 0, window->height-(window->wblock->t.y1+(window->fontheight*6)), true ); if(newwidth<0) return; GFX_set_bottom_widget_height(newwidth < 2 ? g_default_slider_height - 2 : newwidth); UpdateAllWBlockCoordinates(window); window->blt.clear_do=false; window->must_redraw = true; SETTINGS_write_int("bottom_slider_height",newwidth); }
void SelectBottomSliderHeight( struct Tracker_Windows *window, ReqType reqtype ){ char temp[100]; int newwidth; sprintf(temp,"New Height (now %d) >",window->bottomslider.width); newwidth=GFX_GetInteger( window, reqtype, temp, 2, window->height-(window->wblock->t.y1+(window->fontheight*6)) ); if(newwidth<2) return; window->bottomslider.width=newwidth; UpdateAllWBlockCoordinates(window); window->blt.clear_do=false; window->must_redraw = true; SETTINGS_write_int("bottom_slider_height",newwidth); }