mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
[win32] Compilation fixes
Remove the usage of the old CLUTTER_UNITS_* macros and put back a missing ';'. Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
7a8895944b
commit
8f9f6aaf41
@ -91,10 +91,10 @@ clutter_stage_win32_get_preferred_width (ClutterActor *self,
|
|||||||
/* If we're in fullscreen mode then return the size of the screen
|
/* If we're in fullscreen mode then return the size of the screen
|
||||||
instead */
|
instead */
|
||||||
if ((stage_win32->state & CLUTTER_STAGE_STATE_FULLSCREEN))
|
if ((stage_win32->state & CLUTTER_STAGE_STATE_FULLSCREEN))
|
||||||
width = CLUTTER_UNITS_FROM_DEVICE (stage_win32->fullscreen_rect.right
|
width = stage_win32->fullscreen_rect.right
|
||||||
- stage_win32->fullscreen_rect.left);
|
- stage_win32->fullscreen_rect.left;
|
||||||
else
|
else
|
||||||
width = CLUTTER_UNITS_FROM_DEVICE (stage_win32->win_width);
|
width = stage_win32->win_width;
|
||||||
|
|
||||||
if (min_width_p)
|
if (min_width_p)
|
||||||
*min_width_p = width;
|
*min_width_p = width;
|
||||||
@ -115,10 +115,10 @@ clutter_stage_win32_get_preferred_height (ClutterActor *self,
|
|||||||
/* If we're in fullscreen mode then return the size of the screen
|
/* If we're in fullscreen mode then return the size of the screen
|
||||||
instead */
|
instead */
|
||||||
if ((stage_win32->state & CLUTTER_STAGE_STATE_FULLSCREEN))
|
if ((stage_win32->state & CLUTTER_STAGE_STATE_FULLSCREEN))
|
||||||
height = CLUTTER_UNITS_FROM_DEVICE (stage_win32->fullscreen_rect.bottom
|
height = stage_win32->fullscreen_rect.bottom
|
||||||
- stage_win32->fullscreen_rect.top);
|
- stage_win32->fullscreen_rect.top;
|
||||||
else
|
else
|
||||||
height = CLUTTER_UNITS_FROM_DEVICE (stage_win32->win_height);
|
height = stage_win32->win_height;
|
||||||
|
|
||||||
if (min_height_p)
|
if (min_height_p)
|
||||||
*min_height_p = height;
|
*min_height_p = height;
|
||||||
@ -693,7 +693,7 @@ clutter_win32_get_stage_from_window (HWND hwnd)
|
|||||||
{
|
{
|
||||||
/* Otherwise it might be a foreign window so we should check the
|
/* Otherwise it might be a foreign window so we should check the
|
||||||
stage list */
|
stage list */
|
||||||
ClutterStageManager *stage_manager
|
ClutterStageManager *stage_manager;
|
||||||
const GSList *stages, *l;
|
const GSList *stages, *l;
|
||||||
|
|
||||||
stage_manager = clutter_stage_manager_get_default ();
|
stage_manager = clutter_stage_manager_get_default ();
|
||||||
|
Loading…
Reference in New Issue
Block a user