error caused by commit ca9c47b - fb_generic: use parameters as const ref, catch possible dimension error:
/home/bellum/neutrino/bbs/source/gui-neutrino/src/driver/fb_generic.cpp: In member function ‘void CFrameBuffer::RestoreScreen(const int&, const int&, const int&, const int&, uint32_t*)’:
/home/bellum/neutrino/bbs/source/gui-neutrino/src/driver/fb_generic.cpp:1536:9: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (dx > xRes || dy > yRes)
^
/home/bellum/neutrino/bbs-test/source/gui-neutrino/src/driver/fb_generic.cpp:1536:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (dx > xRes || dy > yRes)
^
cc1plus: all warnings being treated as errors
This allows to use same paths for images like for icons.
Was a request, because images inside theme directories were not found.
Thanks bellum for this hint.
This gives possibility to use theme relevant icon sets.
scheme:
/path/to/theme/icons/file.png
example:
/usr/share/tuxbox/neutrino/themes/Neutrino-3.0/icons/file.png
getScreenWidth/HeightRel() was confusing because it depends on users window settings.
Replace names in old unused framebuffer code too.
Signed-off-by: Thilo Graf <dbt@novatux.de>
Conflicts:
gui/channellist.cpp
- Copies areas within the frame buffer
- Hardware accelerated function for cs hd2
- Copying overlapping areas does not always work correctly
without hardware acceleration
This helper to determine alignment for hardware blitting is now in
system/helpers.h, where it does not really belong. Put it into the
framebuffer class instead. Framebuffers that don't need it will just
get a dummy function, the cs_hd2 framebuffer gets the real thing.
Also add a bool function that indicates the need for alignment.
- At the moment supported hardware: CS HD2
Currently known problems:
-------------------------
- Display menus after changing resolution (Reboot required)
- Display headers after changing resolution hd => fullhd (Reboot required)
- Display infobar after changing resolution hd => fullhd (Reboot required)
- Screenshot broken (With new driver and set resolution to 1280x720)
* initialize variables locked and cache_size in constructor
* set lfb pointer to NULL after munmap(), fd to -1 after close
* remove unused tty fd close()