Skip to content

Commit

Permalink
C4ToolsDlg::UpdatePreview: Fix build error on non-Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Feb 27, 2023
1 parent eb52b40 commit 674d4e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/C4ToolsDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,6 @@ void C4ToolsDlg::UpdatePreview()
top = clientRect.top;
previewWidth = clientRect.right - clientRect.left;
previewHeight = clientRect.bottom - clientRect.top;
#elif defined(WITH_DEVELOPER_MODE)
if (!hbox) return;
#endif


#ifndef USE_CONSOLE
if (pGL && pGLCtx)
Expand All @@ -625,6 +621,9 @@ void C4ToolsDlg::UpdatePreview()
}
}
#endif
#elif defined(WITH_DEVELOPER_MODE)
if (!hbox) return;
#endif

const auto surfacePreview = std::make_unique<C4Surface>(previewWidth, previewHeight);

Expand Down

0 comments on commit 674d4e1

Please sign in to comment.