|
@@ -173,7 +173,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|
|
static float textSize = 14.0f;
|
|
static float textSize = 14.0f;
|
|
|
|
|
|
|
|
bool recomputeVisibleText = false;
|
|
bool recomputeVisibleText = false;
|
|
|
- recomputeVisibleText |= imguiSlider("Number of lines", &visibleLineCount, 1.0f, 300.0f , 1.0f);
|
|
|
|
|
|
|
+ recomputeVisibleText |= imguiSlider("Number of lines", &visibleLineCount, 1.0f, 177.0f , 1.0f);
|
|
|
if(imguiSlider("Font size", &textSize, 6.0f, 64.0f , 1.0f))
|
|
if(imguiSlider("Font size", &textSize, 6.0f, 64.0f , 1.0f))
|
|
|
{
|
|
{
|
|
|
fontManager->destroyFont(scaled_font);
|
|
fontManager->destroyFont(scaled_font);
|
|
@@ -184,7 +184,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|
|
|
|
|
|
|
recomputeVisibleText |= imguiSlider("Scroll", &textScroll, 0.0f, (lineCount-visibleLineCount) , 1.0f);
|
|
recomputeVisibleText |= imguiSlider("Scroll", &textScroll, 0.0f, (lineCount-visibleLineCount) , 1.0f);
|
|
|
imguiSlider("Rotate", &textRotation, 0.0f, (float) M_PI *2.0f , 0.1f);
|
|
imguiSlider("Rotate", &textRotation, 0.0f, (float) M_PI *2.0f , 0.1f);
|
|
|
- recomputeVisibleText |= imguiSlider("Scale", &textScale, 0.2f, 10.0f , 0.1f);
|
|
|
|
|
|
|
+ recomputeVisibleText |= imguiSlider("Scale", &textScale, 0.1f, 10.0f , 0.1f);
|
|
|
|
|
|
|
|
if( recomputeVisibleText)
|
|
if( recomputeVisibleText)
|
|
|
{
|
|
{
|