急!打包window版本,全屏需要切换窗口才能达到真正的全屏

就是我现在通过改CCGLView-desktop.cpp文件已经可以全屏了,但是因为main.cpp里的AppDelegate app(960, 640);是固定值,需要切换屏幕才能达到完整全屏
_mainWindow = glfwCreateWindow(screen_width, screen_height, name.c_str(), _monitor, nullptr);
修改为,:
const GLFWvidmode* mode = glfwGetVideoMode(glfwGetPrimaryMonitor());
int screen_width = mode->width;
int screen_height = mode->height;
_mainWindow = glfwCreateWindow(screen_width, screen_height, name.c_str(), glfwGetPrimaryMonitor(), nullptr);

但是这样无法实现真正的全屏,情况类似

然后我用里面的方案替代main.cpp但是打包失败

急求解决方案

可以看看这个