# HG changeset patch # User John Tsiombikas # Date 1444539387 -10800 # Node ID 33ba8618972c43cbbe34f5734580330080faf3f4 # Parent 3784a2d4bed57827e0eef242c669c03c1211bead added commented out (for now) resolution option in the ui diff -r 3784a2d4bed5 -r 33ba8618972c src/istereo.c --- a/src/istereo.c Sat Oct 10 16:38:19 2015 +0300 +++ b/src/istereo.c Sun Oct 11 07:56:27 2015 +0300 @@ -57,6 +57,7 @@ int stereo = 0; int use_bump = 0; int show_opt = 1; +float draw_quality = 1.0f; /* construction parameters */ int sides = 24; diff -r 3784a2d4bed5 -r 33ba8618972c src/ui.cc --- a/src/ui.cc Sat Oct 10 16:38:19 2015 +0300 +++ b/src/ui.cc Sun Oct 11 07:56:27 2015 +0300 @@ -19,12 +19,15 @@ static void split_slider_handler(Widget *w, const Event &ev, void *cls); #ifdef IPHONE static void retina_cbox_handler(Widget *w, const Event &ev, void *cls); +#else +static void qual_slider_handler(Widget *w, const Event &ev, void *cls); #endif extern int stereo; extern int show_opt; extern int use_bump; extern float split; +extern float draw_quality; static Screen scr; static float aspect; @@ -57,6 +60,24 @@ cbox->set_callback(EV_CHANGE, retina_cbox_handler); scr.add_widget(cbox); } +#else + /* + label_split = new Label; + label_split->set_position(100, ypos + vsep); + label_split->set_size(20, vsz); + label_split->set_text("Rendering quality"); + scr.add_widget(label_split); + + Slider *slider = new Slider; + slider->set_position(300, ypos + vsep); + slider->set_size(300, vsz); + slider->set_range(0.5, 1); + slider->set_step(0.25); + slider->set_value(1.0); + slider->set_continuous_change(true); + slider->set_callback(EV_CHANGE, qual_slider_handler); + scr.add_widget(slider); + */ #endif cbox = new CheckBox; @@ -233,5 +254,10 @@ { use_retina_res(((CheckBox*)w)->is_checked() ? 1 : 0); } +#else +static void qual_slider_handler(Widget *w, const Event &ev, void *cls) +{ + draw_quality = ((Slider*)w)->get_value(); +} #endif