Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ffe7cd8e
Commit
ffe7cd8e
authored
Oct 23, 2003
by
gbazin
Browse files
* modules/gui/skins/src/*: don't forget to recreate a win32 timer when the skin is changed.
parent
edad4b8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/gui/skins/src/vlcproc.cpp
View file @
ffe7cd8e
...
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.5
1
2003/10/2
2
1
9:12:56 ipkiss
Exp $
* $Id: vlcproc.cpp,v 1.5
2
2003/10/2
3
1
6:00:48 gbazin
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -427,6 +427,8 @@ void VlcProc::LoadSkin()
// Uninitialize new theme
free
(
p_intf
->
p_sys
->
p_new_theme_file
);
p_intf
->
p_sys
->
p_new_theme_file
=
NULL
;
OSAPI_PostMessage
(
NULL
,
VLC_INTF_REFRESH
,
0
,
(
int
)
true
);
}
}
//---------------------------------------------------------------------------
...
...
modules/gui/skins/win32/win32_run.cpp
View file @
ffe7cd8e
...
...
@@ -2,7 +2,7 @@
* win32_run.cpp:
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: win32_run.cpp,v 1.2
1
2003/10/
15 12:24:14
gbazin Exp $
* $Id: win32_run.cpp,v 1.2
2
2003/10/
23 16:00:48
gbazin Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -48,19 +48,6 @@
// Specific method
//---------------------------------------------------------------------------
bool
IsVLCEvent
(
unsigned
int
msg
);
int
SkinManage
(
intf_thread_t
*
p_intf
);
//---------------------------------------------------------------------------
// Refresh Timer Callback
//---------------------------------------------------------------------------
void
CALLBACK
RefreshTimer
(
HWND
hwnd
,
UINT
uMsg
,
UINT
idEvent
,
DWORD
dwTime
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
GetWindowLongPtr
(
hwnd
,
GWLP_USERDATA
);
SkinManage
(
p_intf
);
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// Win32 interface
...
...
@@ -73,10 +60,6 @@ void OSRun( intf_thread_t *p_intf )
Event
*
ProcessEvent
;
int
KeyModifier
=
0
;
// Create refresh timer
SetTimer
(
((
OSTheme
*
)
p_intf
->
p_sys
->
p_theme
)
->
GetParentWindow
(),
42
,
200
,
(
TIMERPROC
)
RefreshTimer
);
// Compute windows message list
while
(
GetMessage
(
&
msg
,
NULL
,
0
,
0
)
)
{
...
...
modules/gui/skins/win32/win32_theme.cpp
View file @
ffe7cd8e
...
...
@@ -2,7 +2,7 @@
* win32_theme.cpp: Win32 implementation of the Theme class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: win32_theme.cpp,v 1.1
0
2003/10/2
2
1
9:12:56 ipkiss
Exp $
* $Id: win32_theme.cpp,v 1.1
1
2003/10/2
3
1
6:00:48 gbazin
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -49,9 +49,17 @@
//---------------------------------------------------------------------------
void
SkinManage
(
intf_thread_t
*
p_intf
);
int
SkinManage
(
intf_thread_t
*
p_intf
);
//---------------------------------------------------------------------------
// Refresh Timer Callback
//---------------------------------------------------------------------------
void
CALLBACK
RefreshTimer
(
HWND
hwnd
,
UINT
uMsg
,
UINT
idEvent
,
DWORD
dwTime
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
GetWindowLongPtr
(
hwnd
,
GWLP_USERDATA
);
SkinManage
(
p_intf
);
}
//---------------------------------------------------------------------------
// Win32 interface
...
...
@@ -259,6 +267,8 @@ void Win32Theme::OnLoadTheme()
// The create menu
CreateSystemMenu
();
// Create refresh timer
SetTimer
(
ParentWindow
,
42
,
200
,
(
TIMERPROC
)
RefreshTimer
);
}
//---------------------------------------------------------------------------
void
Win32Theme
::
AddSystemMenu
(
string
name
,
Event
*
event
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment