From e51b8dc6d988ab0274936a552e5e4539823683d1 Mon Sep 17 00:00:00 2001 From: Mark Moriarty Date: Tue, 8 Feb 2005 02:32:44 +0000 Subject: [PATCH] preferences_widgets -- Delete spinctrl hack for WIN32 (not needed with updated wxwidgets). People using Cygwin: either need a new contrib set, else compile wxwidgets CVS, at least the 6 Feb version. --- modules/gui/wxwindows/preferences_widgets.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/gui/wxwindows/preferences_widgets.cpp b/modules/gui/wxwindows/preferences_widgets.cpp index 2a0a276387..7410bdd2a6 100644 --- a/modules/gui/wxwindows/preferences_widgets.cpp +++ b/modules/gui/wxwindows/preferences_widgets.cpp @@ -695,21 +695,12 @@ IntegerConfigControl::IntegerConfigControl( vlc_object_t *p_this, : ConfigControl( p_this, p_item, parent ) { label = new wxStaticText(this, -1, wxU(p_item->psz_text)); -#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, - -32768,32767, p_item->i_value); -#else spin = new wxSpinCtrl( this, -1, wxString::Format(wxT("%d"), p_item->i_value), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -100000000, 100000000, p_item->i_value); -#endif spin->SetToolTip( wxU(p_item->psz_longtext) ); sizer->Add( label, 1, wxALIGN_CENTER_VERTICAL | wxALL, 5 ); sizer->Add( spin, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 ); -- 2.39.2