mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 22:58:28 +02:00
Merge branch 'master' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Conflicts:
src/neutrino.cpp
Origin commit data
------------------
Commit: 470a8b62dd
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-08-23 (Wed, 23 Aug 2017)
This commit is contained in:
@@ -58,10 +58,10 @@
|
||||
#include <gui/widget/icons.h>
|
||||
#include <driver/fontrenderer.h>
|
||||
|
||||
#define MAX_WINDOW_WIDTH (frameBuffer->getScreenWidth() - 40)
|
||||
#define MAX_WINDOW_HEIGHT (frameBuffer->getScreenHeight() - 40)
|
||||
#define MAX_WINDOW_WIDTH (frameBuffer ? frameBuffer->getScreenWidth() - 40:0)
|
||||
#define MAX_WINDOW_HEIGHT (frameBuffer ? frameBuffer->getScreenHeight() - 40:0)
|
||||
|
||||
#define MIN_WINDOW_WIDTH (frameBuffer->getScreenWidth() >> 1)
|
||||
#define MIN_WINDOW_WIDTH (frameBuffer ? frameBuffer->getScreenWidth() >> 1:0)
|
||||
#define MIN_WINDOW_HEIGHT 40
|
||||
|
||||
#define TITLE_BACKGROUND_COLOR COL_MENUHEAD_PLUS_0
|
||||
@@ -206,7 +206,7 @@ void CListFrame::reSizeMainFrameWidth(int textWidth)
|
||||
|
||||
int iNewWindowWidth = textWidth + m_cFrameScrollRel.iWidth + 2*OFFSET_INNER_MID;
|
||||
|
||||
if( iNewWindowWidth > m_nMaxWidth) iNewWindowWidth = m_nMaxWidth;
|
||||
if(iNewWindowWidth > m_nMaxWidth) iNewWindowWidth = m_nMaxWidth;
|
||||
if((unsigned int) iNewWindowWidth < MIN_WINDOW_WIDTH) iNewWindowWidth = MIN_WINDOW_WIDTH;
|
||||
|
||||
m_cFrame.iWidth = iNewWindowWidth;
|
||||
|
Reference in New Issue
Block a user