Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ffe7cd8e
Commit
ffe7cd8e
authored
Oct 23, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* 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
Showing
3 changed files
with
17 additions
and
22 deletions
+17
-22
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/vlcproc.cpp
+3
-1
modules/gui/skins/win32/win32_run.cpp
modules/gui/skins/win32/win32_run.cpp
+1
-18
modules/gui/skins/win32/win32_theme.cpp
modules/gui/skins/win32/win32_theme.cpp
+13
-3
No files found.
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/22 19:12:56 ipkiss
Exp $
* $Id: vlcproc.cpp,v 1.5
2 2003/10/23 16: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/22 19:12:56 ipkiss
Exp $
* $Id: win32_theme.cpp,v 1.1
1 2003/10/23 16: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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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