summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2016-03-21 14:40:12 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2016-03-21 14:43:47 +0000
commitaf4d72416ba0d100f6500a99e4d79d47fedc5c25 (patch)
treec5047da6795d97cd45ccd093f5cdf9d7d8b3044f
parent3c8e522c255f647cf4421fe97ed4a9c67ce4418f (diff)
downloadnetsurf-af4d72416ba0d100f6500a99e4d79d47fedc5c25.tar.gz
netsurf-af4d72416ba0d100f6500a99e4d79d47fedc5c25.tar.bz2
Log nsfont_width failure.
-rw-r--r--windows/font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/windows/font.c b/windows/font.c
index 5eecc7264..7258eaf79 100644
--- a/windows/font.c
+++ b/windows/font.c
@@ -27,6 +27,7 @@
#include <assert.h>
#include <windows.h>
+#include "utils/log.h"
#include "utils/nsoption.h"
#include "utils/utf8.h"
#include "desktop/font.h"
@@ -148,6 +149,7 @@ static bool nsfont_width(const plot_font_style_t *style,
ReleaseDC(NULL, hdc);
return true;
}
+ LOG("nsfont_width failed");
font = SelectObject(hdc, fontbak);
DeleteObject(font);
ReleaseDC(NULL, hdc);