Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
tressette
tressette_build.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tressette_build.patch of Package tressette
diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/include/win_type_global.h tressette-0.7.4/include/win_type_global.h --- tressette-0.7.4.orig/include/win_type_global.h 2012-01-07 21:18:30.000000000 +0100 +++ tressette-0.7.4/include/win_type_global.h 2013-08-21 19:10:54.528140684 +0200 @@ -55,6 +55,8 @@ #include <vector> #include <deque> #include <string> + #include <string.h> + #include <strings.h> #endif #ifndef BOOL @@ -95,6 +97,10 @@ #define ULONG unsigned long #endif +#ifndef UINT + #define UINT unsigned int +#endif + #ifndef LPCSTR typedef CONST CHAR *LPCSTR, *PCSTR; #endif diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/TreClientVs6/Makefile.am tressette-0.7.4/src/TreClientVs6/Makefile.am --- tressette-0.7.4.orig/src/TreClientVs6/Makefile.am 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/TreClientVs6/Makefile.am 2013-08-21 19:19:44.371516730 +0200 @@ -33,6 +33,7 @@ ../gfx_widgets/cCheckBoxGfx.cpp\ ../gfx_widgets/cComboGfx.cpp\ ../gfx_widgets/cEditGfx.cpp\ + ../gfx_widgets/cImageLinkGfx.cpp\ ../gfx_widgets/cLabelGfx.cpp\ ../gfx_widgets/cLabelLinkGfx.cpp\ ../gfx_widgets/cMesgBoxGfx.cpp\ diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/TreClientVs6/StdAfx.h tressette-0.7.4/src/TreClientVs6/StdAfx.h --- tressette-0.7.4.orig/src/TreClientVs6/StdAfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/TreClientVs6/StdAfx.h 2013-08-21 19:10:10.513690941 +0200 @@ -6,10 +6,10 @@ #if !defined(AFX_STDAFX_H__C0F7C4A2_35059CA33AE__INCLUDED_) #define AFX_STDAFX_H__C0F7C4A2_35059CA33AE__INCLUDED_ -#ifdef WIN32 +// #ifdef WIN32 -#pragma warning(disable:4786) -#pragma warning(disable:4996) +// #pragma warning(disable:4786) +// #pragma warning(disable:4996) #if _MSC_VER > 1000 #pragma once @@ -17,10 +17,10 @@ //#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers -#define WIN32_LEAN_AND_MEAN +// #define WIN32_LEAN_AND_MEAN #include "win_type_global.h" -#include <windows.h> +// #include <windows.h> #include <deque> #include <string> #include <assert.h> @@ -40,10 +40,10 @@ -#define DLL_EXPORTIMPORT __declspec( dllimport ) +// #define DLL_EXPORTIMPORT __declspec( dllimport ) //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. -#endif // define WIN32 +// #endif // define WIN32 #endif // !defined(AFX_STDAFX_H__C0F7C4A2_35059CA33AE__INCLUDED_) diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cBalloonGfx.h tressette-0.7.4/src/gfx_widgets/cBalloonGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cBalloonGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cBalloonGfx.h 2013-08-21 19:12:52.073671111 +0200 @@ -40,7 +40,7 @@ //! class cBalloonGfx -class DLL_EXPORTIMPORT cBalloonGfx +class cBalloonGfx { public: //! enum eStyle diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cButtonGfx.h tressette-0.7.4/src/gfx_widgets/cButtonGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cButtonGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cButtonGfx.h 2013-08-21 19:13:02.209544447 +0200 @@ -42,7 +42,7 @@ //! class cButtonGfx -class DLL_EXPORTIMPORT cButtonGfx +class cButtonGfx { // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer typedef FastDelegate1<int> CLICKEVENT; diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cCheckBoxGfx.h tressette-0.7.4/src/gfx_widgets/cCheckBoxGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cCheckBoxGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cCheckBoxGfx.h 2013-08-21 19:13:09.917448085 +0200 @@ -41,7 +41,7 @@ #endif // _MSC_VER > 1000 //! class cCheckBoxGfx -class DLL_EXPORTIMPORT cCheckBoxGfx +class cCheckBoxGfx { private: // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cComboGfx.h tressette-0.7.4/src/gfx_widgets/cComboGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cComboGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cComboGfx.h 2013-08-21 19:13:17.951347647 +0200 @@ -43,7 +43,7 @@ //! class cComboGfx -class DLL_EXPORTIMPORT cComboGfx +class cComboGfx { // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer typedef FastDelegate1<int> CLICKEVENT; diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cEditGfx.h tressette-0.7.4/src/gfx_widgets/cEditGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cEditGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cEditGfx.h 2013-08-21 19:13:32.945160197 +0200 @@ -42,7 +42,7 @@ //! class cEditGfx -class DLL_EXPORTIMPORT cEditGfx +class cEditGfx { // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer typedef FastDelegate1<int> CLICKEVENT; diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cImageLinkGfx.h tressette-0.7.4/src/gfx_widgets/cImageLinkGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cImageLinkGfx.h 2012-01-07 21:18:30.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cImageLinkGfx.h 2013-08-21 19:13:46.940985225 +0200 @@ -44,14 +44,14 @@ //! class cImageLinkGfx -class DLL_EXPORTIMPORT cImageLinkGfx : public cLabelLinkGfx +class cImageLinkGfx : public cLabelLinkGfx { public: cImageLinkGfx(); virtual ~cImageLinkGfx(); virtual void Draw(SDL_Surface* pScreen); - virtual void cImageLinkGfx::Init(SDL_Rect* pRect, SDL_Surface* pScreen, LPCSTR imageFile, LPCSTR imageFileOver, int iButID); + virtual void Init(SDL_Rect* pRect, SDL_Surface* pScreen, LPCSTR imageFile, LPCSTR imageFileOver, int iButID); private: void CheckErrorLoadImage(SDL_Surface* pImgSrf, LPCSTR imageFile); diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cLabelGfx.h tressette-0.7.4/src/gfx_widgets/cLabelGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cLabelGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cLabelGfx.h 2013-08-21 19:13:52.435916530 +0200 @@ -42,7 +42,7 @@ //! class cLabelGfx -class DLL_EXPORTIMPORT cLabelGfx +class cLabelGfx { // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer typedef FastDelegate1<int> CLICKEVENT; diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cLabelLinkGfx.h tressette-0.7.4/src/gfx_widgets/cLabelLinkGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cLabelLinkGfx.h 2012-01-07 21:18:30.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cLabelLinkGfx.h 2013-08-21 19:13:57.761849944 +0200 @@ -42,7 +42,7 @@ //! class cLabelLinkGfx -class DLL_EXPORTIMPORT cLabelLinkGfx +class cLabelLinkGfx { // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer typedef FastDelegate1<int> CLICKEVENT; diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cMesgBoxGfx.h tressette-0.7.4/src/gfx_widgets/cMesgBoxGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cMesgBoxGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cMesgBoxGfx.h 2013-08-21 19:14:05.686750871 +0200 @@ -35,7 +35,7 @@ class cButtonGfx; //! class cMesgBoxGfx -class DLL_EXPORTIMPORT cMesgBoxGfx +class cMesgBoxGfx { typedef std::vector<STRING> VCT_STRING; public: diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cPopUpMenuGfx.h tressette-0.7.4/src/gfx_widgets/cPopUpMenuGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cPopUpMenuGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cPopUpMenuGfx.h 2013-08-21 19:14:13.181657172 +0200 @@ -36,7 +36,7 @@ //! class cPopUpMenuGfx -class DLL_EXPORTIMPORT cPopUpMenuGfx +class cPopUpMenuGfx { typedef std::vector<STRING> VCT_STRING; public: diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/cProgressBarGfx.h tressette-0.7.4/src/gfx_widgets/cProgressBarGfx.h --- tressette-0.7.4.orig/src/gfx_widgets/cProgressBarGfx.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/cProgressBarGfx.h 2013-08-21 19:14:23.946522593 +0200 @@ -42,7 +42,7 @@ //! class cProgressBarGfx -class DLL_EXPORTIMPORT cProgressBarGfx +class cProgressBarGfx { // use fastdelegate to implement the observer pattern and avoid using the callback interface on observer typedef FastDelegate1<int> CLICKEVENT; diff -U 3 -H -d -r -N -- tressette-0.7.4.orig/src/gfx_widgets/gfx_util.h tressette-0.7.4/src/gfx_widgets/gfx_util.h --- tressette-0.7.4.orig/src/gfx_widgets/gfx_util.h 2012-01-07 15:32:03.000000000 +0100 +++ tressette-0.7.4/src/gfx_widgets/gfx_util.h 2013-08-21 19:14:51.101183113 +0200 @@ -35,35 +35,35 @@ namespace GFX_UTIL { ///READ PIXEL FROM A SURFACE - DLL_EXPORTIMPORT Uint32 inline GetPixel(SDL_Surface *surface, int x, int y); + Uint32 inline GetPixel(SDL_Surface *surface, int x, int y); ///WRITE PIXEL TO A SURFACE - DLL_EXPORTIMPORT void inline SetPixel(SDL_Surface *surface, int x, int y, Uint32 pixel); + void inline SetPixel(SDL_Surface *surface, int x, int y, Uint32 pixel); ///DRAW A NON-FILLED BOX (RGBA) - DLL_EXPORTIMPORT void rectangleRGBA(SDL_Surface *screen,int x,int y,int x2,int y2,unsigned char r,unsigned char g,unsigned char b,unsigned char a); + void rectangleRGBA(SDL_Surface *screen,int x,int y,int x2,int y2,unsigned char r,unsigned char g,unsigned char b,unsigned char a); ///DRAW A FILLED BOX (RGBA) - DLL_EXPORTIMPORT void boxRGBA(SDL_Surface *screen,int x1,int y1,int x2,int y2,unsigned char r,unsigned char g,unsigned char b,unsigned char a); + void boxRGBA(SDL_Surface *screen,int x1,int y1,int x2,int y2,unsigned char r,unsigned char g,unsigned char b,unsigned char a); ///SET TRANSLUCENCY FOR AN AREA - DLL_EXPORTIMPORT void ScreenShade(SDL_Surface *surface, SDL_Rect *rect, float opacity, unsigned char r, unsigned char g,unsigned char b); + void ScreenShade(SDL_Surface *surface, SDL_Rect *rect, float opacity, unsigned char r, unsigned char g,unsigned char b); ///SHAKE THE SCREEN FOR THE SPECIFIED TIME PERIOD - DLL_EXPORTIMPORT void ScreenShake(SDL_Surface *screen,int val, int time,int delay); + void ScreenShake(SDL_Surface *screen,int val, int time,int delay); //! draw a string - DLL_EXPORTIMPORT void DrawString(SDL_Surface *screen, const char* tmp, int x, int y, SDL_Color color, TTF_Font* customfont); + void DrawString(SDL_Surface *screen, const char* tmp, int x, int y, SDL_Color color, TTF_Font* customfont); //! draw a sprite - DLL_EXPORTIMPORT void DrawStaticSpriteEx(SDL_Surface *screen, int src_x, int src_y, int src_dx, int src_dy, int dst_x, int dst_y, SDL_Surface* sprite); + void DrawStaticSpriteEx(SDL_Surface *screen, int src_x, int src_y, int src_dx, int src_dy, int dst_x, int dst_y, SDL_Surface* sprite); //! draw a line - DLL_EXPORTIMPORT void DrawStaticLine(SDL_Surface *screen, int x0, int y0, int x1, int y1, SDL_Color color); + void DrawStaticLine(SDL_Surface *screen, int x0, int y0, int x1, int y1, SDL_Color color); //! draw a broken line - DLL_EXPORTIMPORT void DrawStaticBrokenLine(SDL_Surface *screen, int x0, int y0, int x1, int y1, const SDL_Color *color1, const SDL_Color *color2, int break_size); + void DrawStaticBrokenLine(SDL_Surface *screen, int x0, int y0, int x1, int y1, const SDL_Color *color1, const SDL_Color *color2, int break_size); //! draw rectangle - DLL_EXPORTIMPORT void DrawRect(SDL_Surface *screen,int x, int y, int dx, int dy, SDL_Color c) ; + void DrawRect(SDL_Surface *screen,int x, int y, int dx, int dy, SDL_Color c) ; }; //! class GFX_UTIL_COLOR /** define colors constant */ -class DLL_EXPORTIMPORT GFX_UTIL_COLOR +class GFX_UTIL_COLOR { public: GFX_UTIL_COLOR(){}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor