mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cleanup: quiet warning WITH_GHOST_CSD=OFF
This commit is contained in:
parent
b73c4e8967
commit
d2e29f5238
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue