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 *height)
{
*width = screen->rect.width;
*height = screen->rect.height;
if (width != NULL)
*width = screen->rect.width;
if (height != NULL)
*height = screen->rect.height;
}
/**