Skip to content

Commit

Permalink
Fixes MacOSX resize events
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpaultaylor committed Jan 23, 2014
1 parent 0c3e3d0 commit 755b4f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gameplay/src/PlatformMacOSX.mm
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,11 @@ - (void)windowDidResize:(NSNotification*)notification
{
[gameLock lock];
NSSize size = [ [ _window contentView ] frame ].size;
gameplay::Platform::resizeEventInternal((unsigned int)size.width, (unsigned int)size.height);
__width = size.width;
__height = size.height;
gameplay::Platform::resizeEventInternal((unsigned int)__width, (unsigned int)__height);


[gameLock unlock];
}

Expand Down
2 changes: 1 addition & 1 deletion samples/browser/src/Audio3DSample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void Audio3DSample::drawDebugText(int x, int y)
void Audio3DSample::drawVector3(const char* str, const Vector3& vector, int x, int y)
{
char buffer[255];
sprintf(buffer, "%s: (%f, %f, %f)", str, vector.x, vector.y, vector.z);
sprintf(buffer, "%s: (%.3f, %.3f, %.3f)", str, vector.x, vector.y, vector.z);
_font->drawText(buffer, x, y, Vector4::one(), 22);
}

Expand Down

0 comments on commit 755b4f4

Please sign in to comment.