Cleanup: quiet warning WITH_GHOST_CSD=OFF

This commit is contained in:
Campbell Barton 2026-07-30 13:08:11 +10:00
parent b73c4e8967
commit d2e29f5238

View file

@ -576,6 +576,7 @@ static int gwl_window_fractional_from_viewport_round(const GWL_WindowFrame &fram
return lroundf(double(value * FRACTIONAL_DENOMINATOR) / double(frame.fractional_scale));
}
#ifdef WITH_GHOST_CSD
/**
* Convert a value in physical pixels (as used by #GWL_WindowFrame.size) into the window's
* surface-local (logical) coordinate space, as needed for WAYLAND requests that operate in
@ -589,6 +590,7 @@ static int32_t gwl_window_physical_to_surface_local(const GWL_Window *win, const
}
return value / win->frame.buffer_scale;
}
#endif /* WITH_GHOST_CSD */
static bool gwl_window_viewport_set(GWL_Window *win,
bool *r_surface_needs_commit,