| 107 | |
| 108 | #ifdef AX_PLATFORM_PC |
| 109 | static void onGLFWwindowSizeCallback(GLFWwindow*, int w, int h) |
| 110 | { |
| 111 | auto director = Director::getInstance(); |
| 112 | auto glView = director->getGLView(); |
| 113 | |
| 114 | glView->setFrameSize(w, h); |
| 115 | setupDesignResolution(glView); |
| 116 | |
| 117 | director->getEventDispatcher()->dispatchCustomEvent(GLViewImpl::EVENT_WINDOW_RESIZED, nullptr); |
| 118 | } |
| 119 | #endif |
| 120 | |
| 121 |
nothing calls this directly
no test coverage detected