xshm_gfx: Add missing casts
This commit is contained in:
parent
54a07eaa60
commit
c9c2d8a0b6
|
@ -98,8 +98,9 @@ static void *xshm_gfx_init(const video_info_t *video,
|
||||||
void *data = malloc (pitch * video->height);
|
void *data = malloc (pitch * video->height);
|
||||||
if (!data) abort();/* seems like an out of memory situation... let's just blow up. */
|
if (!data) abort();/* seems like an out of memory situation... let's just blow up. */
|
||||||
xshm->image = XCreateImage(g_x11_dpy, NULL, 24, ZPixmap, 0,
|
xshm->image = XCreateImage(g_x11_dpy, NULL, 24, ZPixmap, 0,
|
||||||
data, video->width, video->height, 8, pitch);
|
(char *) data, video->width,
|
||||||
xshm->fbptr = data;
|
video->height, 8, pitch);
|
||||||
|
xshm->fbptr = (uint8_t*)data;
|
||||||
XSync(g_x11_dpy, False);
|
XSync(g_x11_dpy, False);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue