Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2cd5aedb
Commit
2cd5aedb
authored
Jan 30, 2005
by
Mark Moriarty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wxwindows update for WIN32 wxSpinCtrl, restrict range to valid integer (-32768, 32767)
parent
5b5c2f30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/gui/wxwindows/open.cpp
modules/gui/wxwindows/open.cpp
+4
-0
modules/gui/wxwindows/preferences_widgets.cpp
modules/gui/wxwindows/preferences_widgets.cpp
+2
-3
No files found.
modules/gui/wxwindows/open.cpp
View file @
2cd5aedb
...
...
@@ -447,7 +447,11 @@ OpenDialog::OpenDialog( intf_thread_t *_p_intf, wxWindow *_p_parent,
common_opt_sizer
->
Add
(
caching_checkbox
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
caching_value
=
new
wxSpinCtrl
(
panel
,
CachingChange_Event
);
#ifdef WIN32
/* WIN32 uses 16 bit integer */
caching_value
->
SetRange
(
0
,
32767
);
#else
caching_value
->
SetRange
(
0
,
1000000
);
#endif
caching_value
->
Disable
();
common_opt_sizer
->
Add
(
caching_value
,
0
,
wxALIGN_RIGHT
|
wxALIGN_CENTER_VERTICAL
);
...
...
modules/gui/wxwindows/preferences_widgets.cpp
View file @
2cd5aedb
...
...
@@ -695,14 +695,13 @@ IntegerConfigControl::IntegerConfigControl( vlc_object_t *p_this,
:
ConfigControl
(
p_this
,
p_item
,
parent
)
{
label
=
new
wxStaticText
(
this
,
-
1
,
wxU
(
p_item
->
psz_text
));
// FIXME -- Hack for nonstandard wxwin wxSpinCtrl operation under WIN32
#ifdef WIN32
#ifdef WIN32 //WIN32 only uses a 16 bit integer
spin
=
new
wxSpinCtrl
(
this
,
-
1
,
wxString
::
Format
(
wxT
(
"%d"
),
p_item
->
i_value
),
wxDefaultPosition
,
wxDefaultSize
,
wxSP_ARROW_KEYS
,
100000000
,
-
100000000
,
p_item
->
i_value
);
-
32768
,
32767
,
p_item
->
i_value
);
#else
spin
=
new
wxSpinCtrl
(
this
,
-
1
,
wxString
::
Format
(
wxT
(
"%d"
),
...
...
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