forked from KolibriOS/kolibrios
eglut: update
git-svn-id: svn://kolibrios.org@5375 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
abe84ef77d
commit
def5de6e8f
@ -68,7 +68,7 @@ void render_swap_and_blit(struct render *render)
|
|||||||
update.bo_pitch = (render->width+15) & ~15;
|
update.bo_pitch = (render->width+15) & ~15;
|
||||||
update.bo_map = (int)render->mask_buffer;
|
update.bo_map = (int)render->mask_buffer;
|
||||||
|
|
||||||
if(drm_ioctl(render->fd, 45, &update))
|
if(drm_ioctl(render->fd, SRV_MASK_UPDATE_EX, &update))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!eglMakeCurrent(render->dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, render->context))
|
if (!eglMakeCurrent(render->dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, render->context))
|
||||||
|
@ -47,8 +47,8 @@ static bitmap_t *sw_create_bitmap(uint32_t width, uint32_t height)
|
|||||||
if (bitmap->buffer == NULL)
|
if (bitmap->buffer == NULL)
|
||||||
goto err_1;
|
goto err_1;
|
||||||
|
|
||||||
printf("create bitmap: %p %dx%d buffer: %p\n",
|
// printf("create bitmap: %p %dx%d buffer: %p\n",
|
||||||
bitmap, bitmap->width, bitmap->height, bitmap->buffer);
|
// bitmap, bitmap->width, bitmap->height, bitmap->buffer);
|
||||||
|
|
||||||
return bitmap;
|
return bitmap;
|
||||||
|
|
||||||
@ -166,7 +166,6 @@ int pxCreateClient(int x, int y, uint32_t width, uint32_t height)
|
|||||||
|
|
||||||
int pxResizeClient(int x, int y, uint32_t width, uint32_t height)
|
int pxResizeClient(int x, int y, uint32_t width, uint32_t height)
|
||||||
{
|
{
|
||||||
printf("resize client\n");
|
|
||||||
return driver->resize_client(x, y, width, height);
|
return driver->resize_client(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user