Skip to content

Commit 665bec1

Browse files
committed
Create FixSafeArea.cpp
1 parent 2ecda5b commit 665bec1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

loader/src/hooks/FixSafeArea.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ifdef GEODE_IS_IOS
2+
#include <Geode/Geode.hpp>
3+
#include <Geode/modify/AppDelegate.hpp>
4+
5+
using namespace geode::prelude;
6+
7+
class $modify(FixSafeAreaAppDelegate, AppDelegate) {
8+
void setupGLView() {
9+
AppDelegate::setupGLView();
10+
m_needsSafeArea = geode::utils::getSafeAreaRect().size != CCDirector::get()->getWinSize();
11+
}
12+
};
13+
#endif

0 commit comments

Comments
 (0)