So long...
This commit is contained in:
13
minilibx/mlx_screen_size.c
Executable file
13
minilibx/mlx_screen_size.c
Executable file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user