mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
Trivial coding style fix
This commit is contained in:
@@ -235,15 +235,11 @@ static void setMiniwindow(WMWindow * win, RImage * image)
|
|||||||
int offs = (x + y * image->width);
|
int offs = (x + y * image->width);
|
||||||
|
|
||||||
if (image->format == RRGBFormat)
|
if (image->format == RRGBFormat)
|
||||||
pixel =
|
pixel = image->data[offs * 3] << 16 | image->data[offs * 3 + 1] << 8
|
||||||
image->data[offs * 3] << 16 | image->data[offs * 3 +
|
| image->data[offs * 3 + 2];
|
||||||
1] << 8 | image->data[offs * 3 + 2];
|
|
||||||
else
|
else
|
||||||
pixel =
|
pixel = image->data[offs * 4] << 16 | image->data[offs * 4 + 1] << 8
|
||||||
image->data[offs * 4] << 16 | image->data[offs * 4 +
|
| image->data[offs * 4 + 2] | image->data[offs * 4 + 3] << 24;
|
||||||
1] << 8 | image->data[offs * 4 +
|
|
||||||
2] | image->
|
|
||||||
data[offs * 4 + 3] << 24;
|
|
||||||
|
|
||||||
data[o++] = pixel;
|
data[o++] = pixel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user