Open crazyhappygame opened 2 weeks ago
Have you checked the Rect GLViewImpl::getSafeAreaRect()
method in GLViewImpl-android.cpp
when running on a device with rounded corners to see what is going on in there? Check if this line is returning true
:
bool isScreenRound = JniHelper::callStaticBooleanMethod("org/axmol/lib/AxmolEngine", "isScreenRound");
auto safeAreaRect = _director->getSafeAreaRect();
Please check screenshots below. Blue rectangle it is safeAreaRect. For Android devices with rounded corners blue is not drawn properly.
Android incorrect: moto G54 (the same issue on other Android devices with rounded corners)
IPhone correct: iPhone Max Pro 15