| 89 | |
| 90 | |
| 91 | static void setupDesignResolution(GLView* glView) |
| 92 | { |
| 93 | auto screen_size = glView->getFrameSize(); |
| 94 | ResolutionPolicy resPolicy; |
| 95 | |
| 96 | if (screen_size.height / designResolutionSize.height <= screen_size.width / designResolutionSize.width) |
| 97 | { |
| 98 | resPolicy = ResolutionPolicy::FIXED_HEIGHT; |
| 99 | } |
| 100 | else |
| 101 | { |
| 102 | resPolicy = ResolutionPolicy::FIXED_WIDTH; |
| 103 | } |
| 104 | |
| 105 | glView->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, resPolicy); |
| 106 | } |
| 107 | |
| 108 | #ifdef AX_PLATFORM_PC |
| 109 | static void onGLFWwindowSizeCallback(GLFWwindow*, int w, int h) |
no outgoing calls
no test coverage detected