mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-02-06 15:33:16 +00:00
use xrender if possible
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@301 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -298,7 +298,6 @@ MwLLPixmap MwLLCreatePixmap(MwLL handle, unsigned char* data, int width, int hei
|
|||||||
r->data = malloc(width * height * 4);
|
r->data = malloc(width * height * 4);
|
||||||
|
|
||||||
r->use_render = XRenderQueryExtension(handle->display, &evbase, &erbase) ? 1 : 0;
|
r->use_render = XRenderQueryExtension(handle->display, &evbase, &erbase) ? 1 : 0;
|
||||||
r->use_render = 0;
|
|
||||||
|
|
||||||
if(r->use_shm) {
|
if(r->use_shm) {
|
||||||
r->image = XShmCreateImage(handle->display, DefaultVisual(handle->display, DefaultScreen(handle->display)), 24, ZPixmap, NULL, &r->shm, width, height);
|
r->image = XShmCreateImage(handle->display, DefaultVisual(handle->display, DefaultScreen(handle->display)), 24, ZPixmap, NULL, &r->shm, width, height);
|
||||||
|
|||||||
Reference in New Issue
Block a user