Mercurial > fife-parpg
diff engine/core/video/cursor.cpp @ 257:f2195628947b
* Cursor will now respect image shift values when drawing the cursor
* Editor now have cursors showing what mode the editor is in
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 08 Jun 2009 19:56:54 +0000 |
parents | 51cc05d862f2 |
children | 4fa875d06e28 |
line wrap: on
line diff
--- a/engine/core/video/cursor.cpp Mon Jun 08 16:57:39 2009 +0000 +++ b/engine/core/video/cursor.cpp Mon Jun 08 19:56:54 2009 +0000 @@ -136,7 +136,7 @@ img = anim.getFrameByTimestamp(animtime); } if (img) { - Rect area(mx + m_drag_offset_x, my + m_drag_offset_y, img->getWidth(), img->getHeight()); + Rect area(mx + m_drag_offset_x + img->getXShift(), my + m_drag_offset_y + img->getYShift(), img->getWidth(), img->getHeight()); m_renderbackend->pushClipArea(area, false); img->render(area); m_renderbackend->popClipArea(); @@ -152,7 +152,7 @@ img = anim.getFrameByTimestamp(animtime); } if (img) { - Rect area(mx, my, img->getWidth(), img->getHeight()); + Rect area(mx + img->getXShift(), my + img->getYShift(), img->getWidth(), img->getHeight()); m_renderbackend->pushClipArea(area, false); img->render(area); m_renderbackend->popClipArea();