mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2025-12-31 06:30:52 +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(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);
|
||||
} else {
|
||||
XPutPixel(r->mask, x, y, 0);
|
||||
@@ -487,7 +487,7 @@ void MwLLPixmapUpdate(MwLLPixmap r) {
|
||||
}
|
||||
|
||||
void MwLLDestroyPixmap(MwLLPixmap pixmap) {
|
||||
free(pixmap->data_buf);
|
||||
free(pixmap->raw);
|
||||
XDestroyImage(pixmap->image);
|
||||
XDestroyImage(pixmap->mask);
|
||||
free(pixmap->data);
|
||||
|
||||
Reference in New Issue
Block a user