Skip to content

Commit a7a6fde

Browse files
committed
This part is windows only though
1 parent f84dda2 commit a7a6fde

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pages/Settings.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void DevTools::drawSettings() {
8282

8383
ImGui::DragFloat("Font Size", &ImGui::GetIO().FontGlobalScale, 0.01f, 1.0f, 3.0f);
8484

85-
#ifdef GEODE_IS_DESKTOP
85+
#ifdef GEODE_IS_DESKTOP
8686

8787
ImGui::Separator();
8888

@@ -92,6 +92,7 @@ void DevTools::drawSettings() {
9292
auto frameSize = GameManager::get()->resolutionForKey(GameManager::get()->m_resolution);
9393
auto fps = roundf(1 / CCDirector::get()->getAnimationInterval());
9494
auto ratio = std::gcd(static_cast<int>(frameSize.width), static_cast<int>(frameSize.height));
95+
#ifdef GEODE_IS_WINDOWS
9596

9697
std::string text = "";
9798
text += "Custom";
@@ -135,6 +136,7 @@ void DevTools::drawSettings() {
135136
CCEGLView::get()->centerWindow();
136137
}
137138
}
139+
#endif
138140

139141

140142
ImGui::TextWrapped(
@@ -153,7 +155,7 @@ void DevTools::drawSettings() {
153155
static_cast<int>(frameSize.width / ratio),
154156
static_cast<int>(frameSize.height / ratio)
155157
);
156-
#endif
158+
#endif
157159

158160
#if 0
159161
static Ref<CCSet> PAUSED_TARGETS = nullptr;

0 commit comments

Comments
 (0)