You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code having mlx_init() returns 0, which means can't get display
#include <mlx.h>
#include <stdio.h>
typedef struct s_data {
void *img;
char *addr;
int bits_per_pixel;
int line_length;
int endian;
} t_data;
void my_mlx_pixel_put(t_data *data, int x, int y, int color)
{
char *dst;
Hi, not sure where went wrong, I can't get display!!, please help, man thanks.
echo $DISPLAY
8:8:8:8:0.0
C:\WINDOWS\system32>wsl --status
Default Distribution: Ubuntu
Default Version: 2
The following code having mlx_init() returns 0, which means can't get display
#include <mlx.h>
#include <stdio.h>
typedef struct s_data {
void *img;
char *addr;
int bits_per_pixel;
int line_length;
int endian;
} t_data;
void my_mlx_pixel_put(t_data *data, int x, int y, int color)
{
char *dst;
}
int main(void)
{
void *mlx;
// void *mlx_win;
t_data img;
printf("cp1");
fflush(stdout);
mlx = mlx_init();
The text was updated successfully, but these errors were encountered: