+ViewLayoutScale::ViewLayoutScale(PreferencesWindow *pwindow,
+ AppearancePrefs *aprefs, int x, int y)
+ : BC_TumbleTextBox(aprefs,
+ pwindow->thread->preferences->layout_scale,
+ 0.f, 10.f, x, y, xS(80), 2)
+{
+ this->pwindow = pwindow;
+ this->aprefs = aprefs;
+ set_increment(0.1);
+}
+
+int ViewLayoutScale::handle_event()
+{
+ float v = atof(get_text());
+ pwindow->thread->preferences->layout_scale = v;
+ return 1;
+}
+