summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/gl/gl-font.c4
-rw-r--r--platform/gl/gl-main.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/platform/gl/gl-font.c b/platform/gl/gl-font.c
index f744fb48..5975951b 100644
--- a/platform/gl/gl-font.c
+++ b/platform/gl/gl-font.c
@@ -104,12 +104,12 @@ void ui_init_fonts(fz_context *ctx, float pixelsize)
data = pdf_lookup_builtin_font(ctx, "Times-Roman", &size);
code = FT_New_Memory_Face(g_freetype_lib, data, size, 0, &g_helvetica);
if (code)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot load helvetica");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "cannot load ui font");
data = pdf_lookup_substitute_cjk_font(ctx, 0, 0, 0, &size, &index);
code = FT_New_Memory_Face(g_freetype_lib, data, size, 0, &g_droidsansfallback);
if (code)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot load droid sans fallback");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "cannot load ui fallback font");
FT_Select_Charmap(g_helvetica, ft_encoding_unicode);
FT_Select_Charmap(g_droidsansfallback, ft_encoding_unicode);
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index e1176f38..9591f4a8 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -1234,6 +1234,7 @@ static void on_scroll(GLFWwindow *window, double x, double y)
static void on_reshape(GLFWwindow *window, int w, int h)
{
+ showinfo = 0;
screen_w = w;
screen_h = h;
ui_needs_update = 1;