Open lovelycheep opened 3 years ago
求大神帮忙
加上这段代码就好了
glview->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, ResolutionPolicy::NO_BORDER); auto frameSize = glview->getFrameSize(); // if the frame's height is larger than the height of medium size. if (frameSize.height > mediumResolutionSize.height) { director->setContentScaleFactor(MIN(largeResolutionSize.height/designResolutionSize.height, largeResolutionSize.width/designResolutionSize.width)); }
为什么呢?
Steps to Reproduce:
测试代码:
效果图如下:
请问哪位大神遇到过这个问题,或者有没有好的绘制斜线的方法