diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-08-02 21:10:15 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-08-02 21:10:15 +0100 |
commit | ab03b204ba42e79dd5047ffb2867043495a8b802 (patch) | |
tree | 886047fe2222fc505e976a8c8768f0a02ef210de /desktop | |
parent | a08a1a1d1451e43fd7a2b3a0e7967e3095313992 (diff) | |
download | netsurf-ab03b204ba42e79dd5047ffb2867043495a8b802.tar.gz netsurf-ab03b204ba42e79dd5047ffb2867043495a8b802.tar.bz2 |
Local history: Treat thumbnail dimensions as CSS pixels.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/local_history.c | 10 |
1 files 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 |