]> git.sesse.net Git - vlc/commitdiff
preferences_widgets -- Delete spinctrl hack for WIN32 (not needed with updated wxwidg...
authorMark Moriarty <markfm@videolan.org>
Tue, 8 Feb 2005 02:32:44 +0000 (02:32 +0000)
committerMark Moriarty <markfm@videolan.org>
Tue, 8 Feb 2005 02:32:44 +0000 (02:32 +0000)
modules/gui/wxwindows/preferences_widgets.cpp

index 2a0a27638771d04e4ff0fe6276cffce3cd66e8fa..7410bdd2a68d6840bd100689279db82b72912de3 100644 (file)
@@ -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 );