mirror of
https://github.com/brl/mutter.git
synced 2025-03-25 04:33:52 +00:00
screen: Allow NULL out arguments in meta_screen_get_size
This commit is contained in:
parent
bfacd9d420
commit
079822c3f4
@ -3411,8 +3411,11 @@ meta_screen_get_size (MetaScreen *screen,
|
|||||||
int *width,
|
int *width,
|
||||||
int *height)
|
int *height)
|
||||||
{
|
{
|
||||||
*width = screen->rect.width;
|
if (width != NULL)
|
||||||
*height = screen->rect.height;
|
*width = screen->rect.width;
|
||||||
|
|
||||||
|
if (height != NULL)
|
||||||
|
*height = screen->rect.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user