Fixed bug introduced by commit f4afb53.
commitcca85af350a95b969ac1bb5ffd0b0893e7f97f79
authorPaolo Capriotti <p.capriotti@gmail.com>
Sat, 3 Nov 2007 16:31:16 +0000 (3 17:31 +0100)
committerPaolo Capriotti <p.capriotti@gmail.com>
Sat, 3 Nov 2007 16:32:09 +0000 (3 17:32 +0100)
tree3667f9184136c27c9fe2f6827d5ddc07067e2cda
parent1482b5b1c513e038499f2f550ef15c2f462c90f5
Fixed bug introduced by commit f4afb53.

In some situations sprites where not loaded and failed to appear. This was
because the 'args' parameter was not correctly forwarded to the lua rendering
function by some calls to the loader object (specifically Theme::operator()).

I have now renamed operator() to the more meaningful getPixmap, and replaced
all calls that retrieve a piece sprites with an invocation of pieceSprite.

Convenience functions Board::loadSprite and PiecePool::loadSprite have been
added, that automatically load the sprite with the correct orientation
depending on the flipped state.
data/scripts/piece_theme.lua
data/scripts/shogi_themelib.lua
src/board.cpp
src/board.h
src/graphicalsystem.cpp
src/luaapi/loader.cpp
src/piecepool.cpp
src/piecepool.h
src/pixmaploader.cpp
src/pixmaploader.h