[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r2833 - in branches/pingus_sdl: . src/display
From: |
jsalmon3 |
Subject: |
[Pingus-CVS] r2833 - in branches/pingus_sdl: . src/display |
Date: |
Sat, 11 Aug 2007 03:59:12 +0200 |
Author: jsalmon3
Date: 2007-08-11 03:59:03 +0200 (Sat, 11 Aug 2007)
New Revision: 2833
Modified:
branches/pingus_sdl/TODO
branches/pingus_sdl/src/display/drawing_context.cpp
Log:
Fixed sprites wobbling while scrolling the map
Modified: branches/pingus_sdl/TODO
===================================================================
--- branches/pingus_sdl/TODO 2007-08-11 01:29:47 UTC (rev 2832)
+++ branches/pingus_sdl/TODO 2007-08-11 01:59:03 UTC (rev 2833)
@@ -56,9 +56,6 @@
- the game is much slower then the Clanlib version
-- there is also a missing float->int cast somewhere, exits and maybe
- other objects 'wooble' by one pixel while scrolling
-
Older Stuff:
~~~~~~~~~~~~
Modified: branches/pingus_sdl/src/display/drawing_context.cpp
===================================================================
--- branches/pingus_sdl/src/display/drawing_context.cpp 2007-08-11 01:29:47 UTC
(rev 2832)
+++ branches/pingus_sdl/src/display/drawing_context.cpp 2007-08-11 01:59:03 UTC
(rev 2833)
@@ -241,8 +241,8 @@
DrawingContext::draw(const Sprite& sprite, float x, float y, float z)
{ // FIXME: This should get flattend down to a simple texture draw
// command for easier sorting after texture-id/alpha
- draw(new SpriteDrawingRequest(sprite, Vector3f(translate_stack.back().x + x,
- translate_stack.back().y + y,
+ draw(new SpriteDrawingRequest(sprite, Vector3f((int)translate_stack.back().x
+ x,
+ (int)translate_stack.back().y
+ y,
z)));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r2833 - in branches/pingus_sdl: . src/display,
jsalmon3 <=