From ab03b204ba42e79dd5047ffb2867043495a8b802 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 2 Aug 2019 21:10:15 +0100 Subject: Local history: Treat thumbnail dimensions as CSS pixels. --- desktop/local_history.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/desktop/local_history.c b/desktop/local_history.c index 8e52af749..1e754c40f 100644 --- a/desktop/local_history.c +++ b/desktop/local_history.c @@ -39,10 +39,12 @@ #include "desktop/browser_history.h" #include "desktop/local_history.h" -#define WIDTH 100 -#define HEIGHT 86 -#define RIGHT_MARGIN 50 -#define BOTTOM_MARGIN 30 +#include "content/handlers/css/utils.h" + +#define WIDTH (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(116)))) +#define HEIGHT (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(100)))) +#define RIGHT_MARGIN (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(50)))) +#define BOTTOM_MARGIN (FIXTOINT(nscss_pixels_css_to_physical(INTTOFIX(30)))) /** * local history viewer context -- cgit v1.2.3