screen: Allow NULL out arguments in meta_screen_get_size

This commit is contained in:
Tomeu Vizoso 2012-08-29 19:34:30 +02:00
parent bfacd9d420
commit 079822c3f4

View File

@ -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;
} }
/** /**