repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 82406d2abf8584aeb5330149a7f31f95c4d1da21: path_to: revision_to:
commit 82406d2abf8584aeb5330149a7f31f95c4d1da21 Author: Emanuele GiaquintaDate: Mon Oct 4 21:56:42 2010 +0000 Do not perform any sanity check on x/y position in 'root' mode. diff --git a/src/background.C b/src/background.C
--- a/src/background.C
+++ b/src/background.C
@@ -541,10 +541,11 @@ bgPixmap_t::render_image (unsigned long background_flags)
get_image_geometry (original_asim->width, original_asim->height, w, h, x, y);
if (!original_asim
- || x >= target_width
- || y >= target_height
- || (w > 0 && x + w <= 0)
- || (h > 0 && y + h <= 0))
+ || (!(flags & rootAlign)
+ && (x >= target_width
+ || y >= target_height
+ || (w > 0 && x + w <= 0)
+ || (h > 0 && y + h <= 0))))
{
if (background)
{
@@ -761,10 +762,11 @@ bgPixmap_t::render_image (unsigned long background_flags)
get_image_geometry (image_width, image_height, w, h, x, y);
- if (x >= target_width
- || y >= target_height
- || (w > 0 && x + w <= 0)
- || (h > 0 && y + h <= 0))
+ if (!(flags & rootAlign)
+ && (x >= target_width
+ || y >= target_height
+ || (w > 0 && x + w <= 0)
+ || (h > 0 && y + h <= 0)))
return false;
result = pixbuf;
-----END OF PAGE-----