Skip to content

Commit

Permalink
Fixed centering issue on Mac
Browse files Browse the repository at this point in the history
The content was in the upper right hand corner on recent Mac builds so I updated this sample to handle high density screens

Added setHighDensityDisplayEnabled() and passed prepareSettings into CINDER_APP
  • Loading branch information
matchingponies committed Mar 30, 2019
1 parent ccf4251 commit 3e872b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions samples/_timeline/TextInputTween/src/TextInputTweenApp.cpp
Expand Up @@ -25,7 +25,7 @@ using namespace std;

class TextInputTweenApp : public App {
public:
void prepareSettings( Settings *settings );
static void prepareSettings( Settings *settings );
void setup();
void keyDown( KeyEvent event );
void update();
Expand All @@ -49,6 +49,9 @@ class TextInputTweenApp : public App {

void TextInputTweenApp::prepareSettings( Settings *settings )
{
#if defined( CINDER_MAC )
settings->setHighDensityDisplayEnabled(true);
#endif
settings->setWindowSize( 700, 700 );
settings->setFrameRate( 60 );
}
Expand Down Expand Up @@ -161,4 +164,4 @@ void TextInputTweenApp::draw()
mDyingCharacters.pop_front();
}

CINDER_APP( TextInputTweenApp, RendererGl )
CINDER_APP( TextInputTweenApp, RendererGl, &TextInputTweenApp::prepareSettings )

0 comments on commit 3e872b2

Please sign in to comment.