aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.def.h2
-rw-r--r--config.mk4
-rw-r--r--image.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index 7fbfb17..1f0d597 100644
--- a/config.def.h
+++ b/config.def.h
@@ -13,7 +13,7 @@ static const char *MARK_FG[] = { "Nsxiv.mark.foreground", NULL };
#if HAVE_LIBFONTS
static const char *BAR_BG[] = { "Nsxiv.bar.background", NULL };
static const char *BAR_FG[] = { "Nsxiv.bar.foreground", NULL };
-static const char *BAR_FONT[] = { "Nsxiv.bar.font", "monospace-8" };
+static const char *BAR_FONT[] = { "Nsxiv.bar.font", "DejaVuSansMono:size=12" };
/* if true, statusbar appears on top of the window */
static const bool TOP_STATUSBAR = false;
diff --git a/config.mk b/config.mk
index 49a1652..d223ef9 100644
--- a/config.mk
+++ b/config.mk
@@ -2,7 +2,7 @@
VERSION = 32
# PREFIX for install
-PREFIX = /usr/local
+PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
EGPREFIX = $(PREFIX)/share/doc/nsxiv/examples
@@ -17,7 +17,7 @@ HAVE_LIBFONTS = $(OPT_DEP_DEFAULT)
HAVE_LIBEXIF = $(OPT_DEP_DEFAULT)
# CFLAGS, any additional compiler flags goes here
-CFLAGS = -Wall -pedantic -O2 -DNDEBUG
+# CFLAGS = -Wall -pedantic -O2 -DNDEBUG
# Uncomment for a debug build using gcc/clang
# CFLAGS = -Wall -pedantic -DDEBUG -g3 -fsanitize=address,undefined
# LDFLAGS = $(CFLAGS)
diff --git a/image.c b/image.c
index a138f95..dd91994 100644
--- a/image.c
+++ b/image.c
@@ -676,8 +676,8 @@ void img_rotate(img_t *img, degree_t d)
ox = d == DEGREE_90 ? img->x : img->win->w - img->x - img->w * img->zoom;
oy = d == DEGREE_270 ? img->y : img->win->h - img->y - img->h * img->zoom;
- img->x = oy + (img->win->w - img->win->h) / 2;
- img->y = ox + (img->win->h - img->win->w) / 2;
+ img->x = oy + (int)(img->win->w - img->win->h) / 2;
+ img->y = ox + (int)(img->win->h - img->win->w) / 2;
tmp = img->w;
img->w = img->h;