This is a---case limited---patch that will resolve the issue pictured in [1].
To reproduce the "problem" you will have to set a useragent that serves you the
latest incarnation of Google.com while using a somewhat "high" DPI display.
[1] http://imgur.com/a/AYeMm
--
Thomas Gardner
diff --git a/main.c b/main.c
index d70f88a..370aa72 100644
--- a/main.c
+++ b/main.c
@@ -1659,7 +1659,7 @@ gboolean
zoom(const Arg *arg) {
unsigned int count = client.state.count;
- webkit_web_view_set_full_content_zoom(client.gui.webview, (arg->i & ZoomFullContent) > 0);
+ //webkit_web_view_set_full_content_zoom(client.gui.webview, (arg->i & ZoomFullContent) > 0);
webkit_web_view_set_zoom_level(client.gui.webview, (arg->i & ZoomOut) ?
webkit_web_view_get_zoom_level(client.gui.webview) +
(((float)(count ? count : 1)) * (arg->i & (1 << 1) ? 1.0 : -1.0) * client.config.zoomstep) :
@@ -2682,6 +2682,13 @@ setup_settings() {
g_free(filename);
g_object_set(G_OBJECT(settings), "user-agent", useragent, NULL);
g_object_get(G_OBJECT(settings), "zoom-step", &client.config.zoomstep, NULL);
+
+ /* (c.f. surf) This is a very targeted hack (MBP Retina); the intent
+ * is to have pages display as if the screen has 96DPI */
+ webkit_web_view_set_full_content_zoom(client.gui.webview, TRUE);
+ g_object_set(G_OBJECT(settings), "enforce-96-dpi", true, NULL);
+ webkit_web_view_set_zoom_level(client.gui.webview, 221/96);
+
webkit_web_view_set_settings(client.gui.webview, settings);
/* proxy */
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Vimprobable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vimprobable-users