aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-10-28 16:38:32 +0600
committerGitHub <noreply@github.com>2021-10-28 16:38:32 +0600
commitf46d30591a985b440a24302f80a3c3f19702c4f7 (patch)
treef38c20940906b564e3c39b12ac7056efaac82a29
parent7e7eaf08f12d43e2eb2d425a08c5c5ad52b17bb1 (diff)
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.
-rw-r--r--nsxiv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nsxiv.h b/nsxiv.h
index 8f288b3..68d1726 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -210,6 +210,9 @@ struct img {
float x;
float y;
+ Imlib_Color_Modifier cmod;
+ int gamma;
+
scalemode_t scalemode;
float zoom;
@@ -218,9 +221,6 @@ struct img {
bool aa;
bool alpha;
- Imlib_Color_Modifier cmod;
- int gamma;
-
struct {
bool on;
int delay;