Commit 6ca3d9e8 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/skins/*: compilation fixes for MSVC. Almost working, we just to find a way to have flex.c not include unistd.h on win32 and not compile the wxwindows files when SKINS_BASIC is defined.
parent fdd5d917
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* button.cpp: Button control * button.cpp: Button control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: button.cpp,v 1.11 2003/04/21 21:51:16 asmax Exp $ * $Id: button.cpp,v 1.12 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -76,7 +76,7 @@ ControlButton::~ControlButton() ...@@ -76,7 +76,7 @@ ControlButton::~ControlButton()
void ControlButton::Init() void ControlButton::Init()
{ {
// Init bitmaps // Init bitmaps
Img = new (Bitmap*)[3]; Img = new (Bitmap *[3]);
Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( Up ); Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( Up );
Img[1] = p_intf->p_sys->p_theme->BmpBank->Get( Down ); Img[1] = p_intf->p_sys->p_theme->BmpBank->Get( Down );
if( Disabled == "none" ) if( Disabled == "none" )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* checkbox.cpp: Checkbox control * checkbox.cpp: Checkbox control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: checkbox.cpp,v 1.5 2003/04/21 21:51:16 asmax Exp $ * $Id: checkbox.cpp,v 1.6 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
//--- VLC ------------------------------------------------------------------- //--- VLC -------------------------------------------------------------------
#include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
//--- SKIN ------------------------------------------------------------------ //--- SKIN ------------------------------------------------------------------
...@@ -98,7 +99,7 @@ ControlCheckBox::~ControlCheckBox() ...@@ -98,7 +99,7 @@ ControlCheckBox::~ControlCheckBox()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void ControlCheckBox::Init() void ControlCheckBox::Init()
{ {
Img = new (Bitmap*)[6]; Img = new (Bitmap *[6]);
// Images for position 1 // Images for position 1
Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( Img1 ); Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( Img1 );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* image.cpp: Image control * image.cpp: Image control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: image.cpp,v 1.6 2003/04/21 21:51:16 asmax Exp $ * $Id: image.cpp,v 1.7 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
//--- VLC ------------------------------------------------------------------- //--- VLC -------------------------------------------------------------------
#include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
//--- SKIN ------------------------------------------------------------------ //--- SKIN ------------------------------------------------------------------
...@@ -59,7 +60,7 @@ ControlImage::~ControlImage() ...@@ -59,7 +60,7 @@ ControlImage::~ControlImage()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void ControlImage::Init() void ControlImage::Init()
{ {
Img = new (Bitmap*)[1]; Img = new (Bitmap *[1]);
Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( Bg ); Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( Bg );
Img[0]->GetSize( Width, Height ); Img[0]->GetSize( Width, Height );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* slider.cpp: Slider control * slider.cpp: Slider control
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: slider.cpp,v 1.9 2003/04/28 12:25:34 asmax Exp $ * $Id: slider.cpp,v 1.10 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -85,7 +85,7 @@ void ControlSlider::Init() ...@@ -85,7 +85,7 @@ void ControlSlider::Init()
{ {
int i; int i;
// Get bitmap from list // Get bitmap from list
Img = new (::Bitmap*)[2]; Img = new (Bitmap *[2]);
Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( cursorUp ); Img[0] = p_intf->p_sys->p_theme->BmpBank->Get( cursorUp );
Img[1] = p_intf->p_sys->p_theme->BmpBank->Get( cursorDown ); Img[1] = p_intf->p_sys->p_theme->BmpBank->Get( cursorDown );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* skin-main.cpp: skins plugin for VLC * skin-main.cpp: skins plugin for VLC
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: skin_main.cpp,v 1.23 2003/04/30 19:22:27 ipkiss Exp $ * $Id: skin_main.cpp,v 1.24 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -23,16 +23,16 @@ ...@@ -23,16 +23,16 @@
* USA. * USA.
*****************************************************************************/ *****************************************************************************/
//--- GENERAL ---------------------------------------------------------------
#ifndef BASIC_SKINS
#include <wx/wx.h>
#endif
//--- VLC ------------------------------------------------------------------- //--- VLC -------------------------------------------------------------------
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
#include <vlc/aout.h> #include <vlc/aout.h>
//--- GENERAL ---------------------------------------------------------------
#ifndef BASIC_SKINS
#include <wx/wx.h>
#endif
//--- SKIN ------------------------------------------------------------------ //--- SKIN ------------------------------------------------------------------
#include "../os_api.h" #include "../os_api.h"
#include "event.h" #include "event.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* themeloader.cpp: ThemeLoader class * themeloader.cpp: ThemeLoader class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: themeloader.cpp,v 1.8 2003/04/24 15:57:50 gbazin Exp $ * $Id: themeloader.cpp,v 1.9 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
//--- GENERAL --------------------------------------------------------------- //--- GENERAL ---------------------------------------------------------------
#include <string> #include <string>
#include <fcntl.h> #include <fcntl.h>
#if !defined WIN32 #if !defined( WIN32 )
# include <unistd.h> # include <unistd.h>
# ifndef PATH_MAX
# define MAX_PATH PATH_MAX;
# endif
#else #else
# include <direct.h> # include <direct.h>
# ifndef PATH_MAX
# define PATH_MAX MAX_PATH
# endif
#endif #endif
//--- VLC ------------------------------------------------------------------- //--- VLC -------------------------------------------------------------------
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class * vlcproc.cpp: VlcProc class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.17 2003/04/30 19:22:27 ipkiss Exp $ * $Id: vlcproc.cpp,v 1.18 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -23,16 +23,16 @@ ...@@ -23,16 +23,16 @@
* USA. * USA.
*****************************************************************************/ *****************************************************************************/
#ifndef BASIC_SKINS
#include <wx/wx.h>
#endif
//--- VLC ------------------------------------------------------------------- //--- VLC -------------------------------------------------------------------
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/intf.h> #include <vlc/intf.h>
#include <vlc/aout.h> #include <vlc/aout.h>
#include <vlc/vout.h> #include <vlc/vout.h>
#ifndef BASIC_SKINS
#include <wx/wx.h>
#endif
extern "C" { extern "C" {
#include "netutils.h" #include "netutils.h"
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_run.cpp: * win32_run.cpp:
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_run.cpp,v 1.13 2003/04/30 19:22:27 ipkiss Exp $ * $Id: win32_run.cpp,v 1.14 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -25,15 +25,16 @@ ...@@ -25,15 +25,16 @@
#ifdef WIN32 #ifdef WIN32
//--- VLC -------------------------------------------------------------------
#include <vlc/vlc.h>
#include <vlc/intf.h>
//--- GENERAL --------------------------------------------------------------- //--- GENERAL ---------------------------------------------------------------
#ifndef BASIC_SKINS #ifndef BASIC_SKINS
#include <wx/wx.h> #include <wx/wx.h>
#endif #endif
#include <windows.h> #include <windows.h>
//--- VLC -------------------------------------------------------------------
#include <vlc/intf.h>
//--- SKIN ------------------------------------------------------------------ //--- SKIN ------------------------------------------------------------------
#include "../os_api.h" #include "../os_api.h"
#include "../src/event.h" #include "../src/event.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_window.cpp: Win32 implementation of the Window class * win32_window.cpp: Win32 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: win32_window.cpp,v 1.11 2003/04/29 12:54:57 gbazin Exp $ * $Id: win32_window.cpp,v 1.12 2003/05/02 15:53:32 gbazin Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr> * Emmanuel Puig <karibu@via.ecp.fr>
...@@ -25,6 +25,12 @@ ...@@ -25,6 +25,12 @@
#ifdef WIN32 #ifdef WIN32
/* For TrackMouseEvent, WM_MOUSEWHEEL and GET_WHEEL_DELTA_WPARAM */
#undef WINVER
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#define WINVER 0x0500
//--- GENERAL --------------------------------------------------------------- //--- GENERAL ---------------------------------------------------------------
//#include <math.h> //#include <math.h>
...@@ -47,8 +53,6 @@ ...@@ -47,8 +53,6 @@
#include "../src/skin_common.h" #include "../src/skin_common.h"
#include "../src/theme.h" #include "../src/theme.h"
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// Fading API // Fading API
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment