Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/ab03b204ba42e79dd5047ffb2867043495a8b802
...commit
http://git.netsurf-browser.org/netsurf.git/commit/ab03b204ba42e79dd5047ffb2867043495a8b802
...tree
http://git.netsurf-browser.org/netsurf.git/tree/ab03b204ba42e79dd5047ffb2867043495a8b802
The branch, master has been updated
via ab03b204ba42e79dd5047ffb2867043495a8b802 (commit)
from a08a1a1d1451e43fd7a2b3a0e7967e3095313992 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=ab03b204ba42e79dd5047ffb2867043495a8b802
commit ab03b204ba42e79dd5047ffb2867043495a8b802
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Local history: Treat thumbnail dimensions as CSS pixels.
diff --git a/desktop/local_history.c b/desktop/local_history.c
index 8e52af7..1e754c4 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
-----------------------------------------------------------------------
Summary of changes:
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 8e52af7..1e754c4 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
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org