mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
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);
|
||||
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,
|
||||
data, video->width, video->height, 8, pitch);
|
||||
xshm->fbptr = data;
|
||||
(char *) data, video->width,
|
||||
video->height, 8, pitch);
|
||||
xshm->fbptr = (uint8_t*)data;
|
||||
XSync(g_x11_dpy, False);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user