Krolyxon
Commit f46d305

Branches

Refs →

nsxivf46d305

eleminate padding from struct img on 64bit systems (#136)

on 64bit systems this reduces the size of the struct from 104 bytes down
to 96 bytes.

on 32bits system this change shouldn't have any affect.
Author
N-R-K
Date
2021-10-28 16:38 +0600
Committer
GitHub · 2021-10-28 16:38 +0600
Parent
7e7eaf0
Commit
f46d30591a985b440a24302f80a3c3f19702c4f7

+3 −3

1 file changed

  1. M nsxiv.h +3 −3
M nsxiv.h View
@@ -210,6 +210,9 @@ struct img {
210210 float x;
211211 float y;
212212
213+ Imlib_Color_Modifier cmod;
214+ int gamma;
215+
213216 scalemode_t scalemode;
214217 float zoom;
215218
@@ -218,9 +221,6 @@ struct img {
218221 bool aa;
219222 bool alpha;
220223
221− Imlib_Color_Modifier cmod;
222− int gamma;
223−
224224 struct {
225225 bool on;
226226 int delay;