From: <bal...@us...> - 2003-12-01 16:33:26
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/SDLVideo In directory sc8-pr-cvs1:/tmp/cvs-serv2030/plugins/SDLVideo Modified Files: SDLVideoDriver.h SDLVideoDriver.cpp Log Message: Added Feature : SDLVideoDriver.cpp / .h : published DrawLine function Index: SDLVideoDriver.h =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/SDLVideo/SDLVideoDriver.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** SDLVideoDriver.h 30 Nov 2003 23:25:00 -0000 1.17 --- SDLVideoDriver.h 1 Dec 2003 16:33:21 -0000 1.18 *************** *** 67,70 **** --- 67,71 ---- /** This function Draws a Polygon on the Screen */ void DrawPolyline(Gem_Polygon * poly, Color &color, bool fill = false); + inline void DrawLine(short x1, short y1, short x2, short y2, Color &color); /** Creates a Palette from Color */ Color * CreatePalette(Color color, Color back); *************** *** 92,96 **** private: inline void SetPixel(short x, short y, Color &color); - inline void DrawLine(short x1, short y1, short x2, short y2, Color &color); inline void GetPixel(short x, short y, Color *color); --- 93,96 ---- Index: SDLVideoDriver.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/SDLVideo/SDLVideoDriver.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** SDLVideoDriver.cpp 30 Nov 2003 23:25:00 -0000 1.36 --- SDLVideoDriver.cpp 1 Dec 2003 16:33:21 -0000 1.37 *************** *** 355,358 **** --- 355,359 ---- free(spr->pixels); delete(spr); + spr = NULL; } |