repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 82406d2abf8584aeb5330149a7f31f95c4d1da21:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 82406d2abf8584aeb5330149a7f31f95c4d1da21
Author: Emanuele Giaquinta 
Date:   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
index cdb4d680ab930f1a3333d365dcd851cd427b6807..
index ..c1f806c0a110bd775082bede9406e56841f4d9ab 100644
--- 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-----