mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 10:53:27 +00:00
ugh
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@574 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -477,7 +477,7 @@ void MwLLPixmapUpdate(MwLLPixmap r) {
|
|||||||
|
|
||||||
for(y = 0; y < r->height; y++) {
|
for(y = 0; y < r->height; y++) {
|
||||||
for(x = 0; x < r->width; x++) {
|
for(x = 0; x < r->width; x++) {
|
||||||
if(r->data_buf[(y * r->width + x) * 4 + 3]) {
|
if(r->raw[(y * r->width + x) * 4 + 3]) {
|
||||||
XPutPixel(r->mask, x, y, 1);
|
XPutPixel(r->mask, x, y, 1);
|
||||||
} else {
|
} else {
|
||||||
XPutPixel(r->mask, x, y, 0);
|
XPutPixel(r->mask, x, y, 0);
|
||||||
@@ -487,7 +487,7 @@ void MwLLPixmapUpdate(MwLLPixmap r) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MwLLDestroyPixmap(MwLLPixmap pixmap) {
|
void MwLLDestroyPixmap(MwLLPixmap pixmap) {
|
||||||
free(pixmap->data_buf);
|
free(pixmap->raw);
|
||||||
XDestroyImage(pixmap->image);
|
XDestroyImage(pixmap->image);
|
||||||
XDestroyImage(pixmap->mask);
|
XDestroyImage(pixmap->mask);
|
||||||
free(pixmap->data);
|
free(pixmap->data);
|
||||||
|
|||||||
Reference in New Issue
Block a user