From 0d25e45e777bd67e4be0d40c089704efab1ccf3d Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 2 Feb 2020 21:26:36 +0100 Subject: [PATCH] partial revert:pictureviewer: fix move resized pic with pictureviewer Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e0f8cc7fb9c71202fbb96c726913d2d17ce40487 Author: Jacek Jendrzej Date: 2020-02-02 (Sun, 02 Feb 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/fb_generic.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index c320a1b8f..44ab438d7 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -1885,12 +1885,9 @@ void CFrameBuffer::displayRGB(unsigned char *rgbbuff, int x_size, int y_size, in if(x_pan > x_size - (int)xRes) x_pan = 0; if(y_pan > y_size - (int)yRes) y_pan = 0; -#if 0 /* correct offset */ - /* this break move zoomed pic with pictureviewer */ if(x_offs + x_size > (int)xRes) x_offs = 0; if(y_offs + y_size > (int)yRes) y_offs = 0; -#endif /* blit buffer 2 fb */ fbbuff = convertRGB2FB(rgbbuff, x_size, y_size, transp);