You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
288 B
13 lines
288 B
#include "mlx_int.h"
|
|
|
|
int mlx_get_screen_size(void *mlx_ptr, int *sizex, int *sizey)
|
|
{
|
|
XWindowAttributes xwAttr;
|
|
Status ret;
|
|
t_xvar *xvar;
|
|
|
|
xvar = mlx_ptr;
|
|
ret = XGetWindowAttributes(xvar->display, xvar->root, &xwAttr);
|
|
(*sizex) = xwAttr.width;
|
|
(*sizey) = xwAttr.height;
|
|
}
|
|
|