pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2768 - branches/pingus_sdl/src


From: grumbel at BerliOS
Subject: [Pingus-CVS] r2768 - branches/pingus_sdl/src
Date: Thu, 2 Aug 2007 03:57:46 +0200

Author: grumbel
Date: 2007-08-02 03:57:45 +0200 (Thu, 02 Aug 2007)
New Revision: 2768

Removed:
   branches/pingus_sdl/src/indexed_canvas.cpp
   branches/pingus_sdl/src/indexed_canvas.hpp
Modified:
   branches/pingus_sdl/src/SConscript
Log:
- removed unused file

Modified: branches/pingus_sdl/src/SConscript
===================================================================
--- branches/pingus_sdl/src/SConscript  2007-08-02 01:49:53 UTC (rev 2767)
+++ branches/pingus_sdl/src/SConscript  2007-08-02 01:57:45 UTC (rev 2768)
@@ -58,7 +58,6 @@
 env.Program('../pingus', [
 
 # # 'gui/buffer_graphic_context.cpp', 
-# # 'indexed_canvas.cpp', 
 # # 'input/axes/mouse_axis.cpp', 
 # # 'pingus_level_test.cpp', 
 # # 'sound/slot_manager.cpp', 
@@ -309,8 +308,6 @@
 # 'xml_pdf.cpp', 
 # 'xml_pingus_level.cpp'
 ],
-LIBS    = env['LIBS'],
-LIBPATH = env['LIBPATH'],
 CPPPATH = env['CPPPATH'] + ['..'] + ['.'])
 
 ## EOF ##

Deleted: branches/pingus_sdl/src/indexed_canvas.cpp
===================================================================
--- branches/pingus_sdl/src/indexed_canvas.cpp  2007-08-02 01:49:53 UTC (rev 
2767)
+++ branches/pingus_sdl/src/indexed_canvas.cpp  2007-08-02 01:57:45 UTC (rev 
2768)
@@ -1,51 +0,0 @@
-//  $Id: indexed_canvas.cxx,v 1.3 2002/10/20 18:28:48 torangan Exp $
-//
-//  Pingus - A free Lemmings clone
-//  Copyright (C) 2002 Ingo Ruhnke <address@hidden>
-//
-//  This program is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU General Public License
-//  as published by the Free Software Foundation; either version 2
-//  of the License, or (at your option) any later version.
-//
-//  This program is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-//  GNU General Public License for more details.
-//
-//  You should have received a copy of the GNU General Public License
-//  along with this program; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
-#include "indexed_canvas.hpp"
-#include <assert.h>
-
-
-IndexedCanvas::IndexedCanvas(int w, int h)
-  : width(w),
-    height(h),
-    transcol(-1)
-{
-  data = new unsigned char [width * height];
-}
-
-IndexedCanvas::~IndexedCanvas()
-{
-  delete[] data;
-}
-
-void
-IndexedCanvas::set_palette(CL_Palette* p)
-{
-  assert(p);
-  memcpy(palette.palette, p->palette, p->num_colors*3);
-}
-
-CL_Palette*
-IndexedCanvas::get_palette() const
-{
-  return const_cast<CL_Palette*>(&palette);
-}
-
-
-/* EOF */

Deleted: branches/pingus_sdl/src/indexed_canvas.hpp
===================================================================
--- branches/pingus_sdl/src/indexed_canvas.hpp  2007-08-02 01:49:53 UTC (rev 
2767)
+++ branches/pingus_sdl/src/indexed_canvas.hpp  2007-08-02 01:57:45 UTC (rev 
2768)
@@ -1,74 +0,0 @@
-//  $Id: indexed_canvas.hxx,v 1.6 2003/10/21 11:01:52 grumbel Exp $
-//
-//  Pingus - A free Lemmings clone
-//  Copyright (C) 2002 Ingo Ruhnke <address@hidden>
-//
-//  This program is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU General Public License
-//  as published by the Free Software Foundation; either version 2
-//  of the License, or (at your option) any later version.
-//
-//  This program is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-//  GNU General Public License for more details.
-//
-//  You should have received a copy of the GNU General Public License
-//  along with this program; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
-#ifndef HEADER_PINGUS_INDEXED_CANVAS_HXX
-#define HEADER_PINGUS_INDEXED_CANVAS_HXX
-
-#include <ClanLib/Display/pixel_buffer.h>
-#include <ClanLib/Display/palette.h>
-
-
-/** This class is analog to CL_Canvas, but instead of being true
-    color, it is indexed */
-class IndexedCanvas : public PixelBuffer
-{
-private:
-  unsigned int width;
-  unsigned int height;
-  int transcol;
-  unsigned char* data;
-  CL_Palette palette;
-public:
-  IndexedCanvas(int width, int height);
-  ~IndexedCanvas();
-
-  bool is_indexed() const { return true; }
-  unsigned int get_width()  const { return width; }
-  unsigned int get_pitch()  const { return width; }
-  unsigned int get_height() const { return height; }
-
-  unsigned int get_num_frames() const { return 1; }
-  void* get_data() const { return data; }
-  void  set_palette(CL_Palette*);
-  CL_Palette* get_palette() const;
-
-  void lock() {}
-  void unlock() {}
-
-  unsigned int get_bytes_per_pixel () const { return 1; }
-  unsigned int get_depth() const { return 8; }
-
-  bool         uses_src_colorkey() const { return transcol != -1; }
-  unsigned int get_src_colorkey() const { return transcol; }
-  void         set_src_colorkey(int t) { transcol = t; }
-
-  unsigned int get_red_mask() const { return 0; }
-  unsigned int get_green_mask() const { return 0; }
-  unsigned int get_blue_mask() const { return 0; }
-  unsigned int get_alpha_mask() const { return 0; }
-
-private:
-  IndexedCanvas (const IndexedCanvas&);
-  IndexedCanvas& operator= (const IndexedCanvas&);
-};
-
-
-#endif
-
-/* EOF */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]