X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fskins2%2Fwin32%2Fwin32_factory.cpp;h=e7bbf66952b11dc9873c403ed1b44ac65653e829;hb=28e52ddb9b8a1ae76eba086114ecf0bca90383ee;hp=603fd93ebd15f5f1d31eac405207b27e9db91038;hpb=278b0b2aa118af8b6fcc3919764b6fab2eb5eb21;p=vlc diff --git a/modules/gui/skins2/win32/win32_factory.cpp b/modules/gui/skins2/win32/win32_factory.cpp index 603fd93ebd..e7bbf66952 100644 --- a/modules/gui/skins2/win32/win32_factory.cpp +++ b/modules/gui/skins2/win32/win32_factory.cpp @@ -33,6 +33,7 @@ #include "win32_loop.hpp" #include "../src/theme.hpp" #include "../src/window_manager.hpp" +#include "../src/generic_window.hpp" #include "../commands/cmd_dialogs.hpp" #include "../commands/cmd_minimize.hpp" @@ -225,16 +226,15 @@ bool Win32Factory::init() } // Initialize the resource path - m_resourcePath.push_back( (string)getIntf()->p_libvlc->psz_homedir + - "\\" + CONFIG_DIR + "\\skins" ); - m_resourcePath.push_back( (string)vlc_path( getIntf() ) + - "\\skins" ); - m_resourcePath.push_back( (string)vlc_path( getIntf() ) + - "\\skins2" ); - m_resourcePath.push_back( (string)vlc_path( getIntf() ) + - "\\share\\skins" ); - m_resourcePath.push_back( (string)vlc_path( getIntf() ) + - "\\share\\skins2" ); + char *datadir = config_GetUserDir( VLC_DATA_DIR ); + m_resourcePath.push_back( (string)datadir + "\\skins" ); + free( datadir ); + datadir = config_GetDataDir( getIntf() ); + m_resourcePath.push_back( (string)datadir + "\\skins" ); + m_resourcePath.push_back( (string)datadir + "\\skins2" ); + m_resourcePath.push_back( (string)datadir + "\\share\\skins" ); + m_resourcePath.push_back( (string)datadir + "\\share\\skins2" ); + free( datadir ); // All went well return true; @@ -322,7 +322,8 @@ OSTimer *Win32Factory::createOSTimer( CmdGeneric &rCmd ) OSWindow *Win32Factory::createOSWindow( GenericWindow &rWindow, bool dragDrop, - bool playOnDrop, OSWindow *pParent ) + bool playOnDrop, OSWindow *pParent, + GenericWindow::WindowType_t type ) { return new Win32Window( getIntf(), rWindow, m_hInst, m_hParentWindow, dragDrop, playOnDrop, (Win32Window*)pParent ); @@ -388,24 +389,12 @@ void Win32Factory::changeCursor( CursorType_t type ) const LPCTSTR id; switch( type ) { - case kDefaultArrow: - id = IDC_ARROW; - break; - case kResizeNWSE: - id = IDC_SIZENWSE; - break; - case kResizeNS: - id = IDC_SIZENS; - break; - case kResizeWE: - id = IDC_SIZEWE; - break; - case kResizeNESW: - id = IDC_SIZENESW; - break; - default: - id = IDC_ARROW; - break; + default: + case kDefaultArrow: id = IDC_ARROW; break; + case kResizeNWSE: id = IDC_SIZENWSE; break; + case kResizeNS: id = IDC_SIZENS; break; + case kResizeWE: id = IDC_SIZEWE; break; + case kResizeNESW: id = IDC_SIZENESW; break; } HCURSOR hCurs = LoadCursor( NULL, id );