14 lines
288 B
C
14 lines
288 B
C
#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;
|
|
}
|