Skip to content

Commit

Permalink
mac full screen support
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed May 27, 2016
1 parent 7516db0 commit 24df872
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cocos/platform/desktop/CCGLViewImpl-desktop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ GLViewImpl::~GLViewImpl()
GLViewImpl* GLViewImpl::create(const std::string& viewName)
{
auto ret = new (std::nothrow) GLViewImpl;
if(ret && ret->initWithRect(viewName, Rect(0, 0, 960, 640), 1.0f, false)) {
if(ret && ret->initWithRect(viewName, Rect(0, 0, 960, 640), 1.0f, true)) {
ret->autorelease();
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp-tests/Classes/AppDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ bool AppDelegate::applicationDidFinishLaunching()

fileUtils->setSearchPaths(searchPaths);

glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::SHOW_ALL);
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::NO_BORDER);

// Enable Remote Console
auto console = director->getConsole();
Expand Down

0 comments on commit 24df872

Please sign in to comment.