Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/341c22d2a593040c558de5f9b82d3f740207d82f
...commit
http://git.netsurf-browser.org/netsurf.git/commit/341c22d2a593040c558de5f9b82d3f740207d82f
...tree
http://git.netsurf-browser.org/netsurf.git/tree/341c22d2a593040c558de5f9b82d3f740207d82f
The branch, master has been updated
via 341c22d2a593040c558de5f9b82d3f740207d82f (commit)
from 9af420b7afb8f54ae64c0ba3f10427f8c6a5b0ce (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=341c22d2a593040c558de5f9b82d3f740207d82f
commit 341c22d2a593040c558de5f9b82d3f740207d82f
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Windows: Use bitmap width as minimum width, since content width may be 0.
diff --git a/frontends/windows/bitmap.c b/frontends/windows/bitmap.c
index 1266adb..eed3d3a 100644
--- a/frontends/windows/bitmap.c
+++ b/frontends/windows/bitmap.c
@@ -326,7 +326,7 @@ bitmap_render(struct bitmap *bitmap, struct hlcache_handle
*content)
.plot = &win_plotters
};
- width = min(content_get_width(content), 1024);
+ width = min(max(content_get_width(content), bitmap->width), 1024);
height = ((width * bitmap->height) + (bitmap->width / 2)) /
bitmap->width;
-----------------------------------------------------------------------
Summary of changes:
frontends/windows/bitmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontends/windows/bitmap.c b/frontends/windows/bitmap.c
index 1266adb..eed3d3a 100644
--- a/frontends/windows/bitmap.c
+++ b/frontends/windows/bitmap.c
@@ -326,7 +326,7 @@ bitmap_render(struct bitmap *bitmap, struct hlcache_handle
*content)
.plot = &win_plotters
};
- width = min(content_get_width(content), 1024);
+ width = min(max(content_get_width(content), bitmap->width), 1024);
height = ((width * bitmap->height) + (bitmap->width / 2)) /
bitmap->width;
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org