Commit f410c43b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: detect the screen size at startup since some screens are too small for some windows.

parent 148673ed
......@@ -355,6 +355,10 @@ static void *Thread( void *obj )
/* Initialize timers and the Dialog Provider */
DialogsProvider::getInstance( p_intf );
/* Detect screensize for small screens like TV or EEEpc*/
p_intf->p_sys->i_screenHeight =
app->QApplication::desktop()->availableGeometry().height();
#ifdef UPDATE_CHECK
/* Checking for VLC updates */
if( config_GetInt( p_intf, "qt-updates-notif" ) &&
......
......@@ -68,6 +68,8 @@ struct intf_sys_t
bool b_isDialogProvider; /* Qt mode or Skins mode */
int i_screenHeight; /* Detection of Small screens */
playlist_t *p_playlist; /* Core Playlist discussion */
const char *psz_filepath; /* Last path used in dialogs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment