[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds surface_background.cxx,1.
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds surface_background.cxx,1.2,1.3 surface_background.hxx,1.1,1.2 |
Date: |
22 Jun 2002 14:29:20 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/backgrounds
In directory dark:/tmp/cvs-serv22836/backgrounds
Modified Files:
surface_background.cxx surface_background.hxx
Log Message:
- added mtime checker for the thumbnails
- added version info for the thumbnail
Index: surface_background.cxx
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/backgrounds/surface_background.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- surface_background.cxx 13 Jun 2002 14:25:12 -0000 1.2
+++ surface_background.cxx 22 Jun 2002 14:29:18 -0000 1.3
@@ -47,13 +47,15 @@
&& bg_data.color != Color (0, 0, 0, 1.0f)) // Workaround for a
// bug which caused
// all levels to have
- // tho wrong
+ // the wrong
// background color
{
std::cout << "------ SurfaceBackground:: Manipulating background ------"
<< std::endl;
// FIXME: This is extremly buggy and it will crash, no idea why....
CL_Surface source_surface = PingusResource::load_surface(bg_data.desc);
+ // FIXME: Scaling not implemented
+
CL_Canvas* canvas = Blitter::create_canvas(source_surface);
/* FIXME: fill_rect doesn't work with RGB images
FIXME: seems to work fine with indexed images
Index: surface_background.hxx
===================================================================
RCS file:
/usr/local/cvsroot/Games/Pingus/src/backgrounds/surface_background.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- surface_background.hxx 12 Jun 2002 19:02:30 -0000 1.1
+++ surface_background.hxx 22 Jun 2002 14:29:18 -0000 1.2
@@ -30,13 +30,16 @@
private SurfaceBackgroundData
{
private:
- AnimCounter scroll;
GameCounter counter;
bool surface_need_deletion;
- CL_Surface bg_surface_raw;
+
CL_Surface bg_surface;
- float scroll_ox, scroll_oy;
- int x1, x2, y1, y2;
+
+ /** The horizontal scrolling speed in pixels per tick */
+ float scroll_ox;
+
+ /** The vertical scrolling speed in pixels per tick */
+ float scroll_oy;
public:
SurfaceBackground(const SurfaceBackgroundData&);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/backgrounds surface_background.cxx,1.2,1.3 surface_background.hxx,1.1,1.2,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src blitter.hxx,1.2,1.3 pingus_resource.cxx,1.4,1.5
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor_event.cxx,1.3,1.4
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src blitter.hxx,1.2,1.3 pingus_resource.cxx,1.4,1.5
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor_event.cxx,1.3,1.4
- Index(es):