aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorFabio Battaglia2009-03-02 11:12:41 +0000
committerFabio Battaglia2009-03-02 11:12:41 +0000
commit023320215097f69d99a4c907c847ce867e8069a0 (patch)
tree4091d5a6f1382fd148c121ad6ee0fc20672f7dea /engines/sword1
parent08a2de9447b5eba84d6cc43d77b129479ece33e7 (diff)
downloadscummvm-rg350-023320215097f69d99a4c907c847ce867e8069a0.tar.gz
scummvm-rg350-023320215097f69d99a4c907c847ce867e8069a0.tar.bz2
scummvm-rg350-023320215097f69d99a4c907c847ce867e8069a0.zip
Formatting changes in older PSX related functions
svn-id: r39071
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/screen.cpp6
-rw-r--r--engines/sword1/screen.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp
index 3a6e4105a5..43657434eb 100644
--- a/engines/sword1/screen.cpp
+++ b/engines/sword1/screen.cpp
@@ -833,7 +833,7 @@ void Screen::addToGraphicList(uint8 listId, uint32 objId) {
}
}
-uint8* Screen::psxBackgroundToIndexed(uint8* psxBackground, uint32 bakXres, uint32 bakYres) {
+uint8* Screen::psxBackgroundToIndexed(uint8 *psxBackground, uint32 bakXres, uint32 bakYres) {
uint32 xresInTiles = bakXres / 16;
uint32 yresInTiles = ((bakYres / 2) % 16) ? (bakYres / 32) + 1 : (bakYres / 32);
uint32 totTiles = xresInTiles * yresInTiles;
@@ -884,7 +884,7 @@ uint8* Screen::psxBackgroundToIndexed(uint8* psxBackground, uint32 bakXres, uint
}
// needed because some psx backgrounds are half width and half height
-uint8* Screen::psxShrinkedBackgroundToIndexed(uint8* psxBackground, uint32 bakXres, uint32 bakYres) {
+uint8* Screen::psxShrinkedBackgroundToIndexed(uint8 *psxBackground, uint32 bakXres, uint32 bakYres) {
uint32 xresInTiles = (bakXres / 2) % 16 ? (bakXres / 32) + 1 : (bakXres / 32);
uint32 yresInTiles = (bakYres / 2) % 16 ? (bakYres / 32) + 1 : (bakYres / 32);
uint32 totTiles = xresInTiles * yresInTiles;
@@ -943,7 +943,7 @@ uint8* Screen::psxShrinkedBackgroundToIndexed(uint8* psxBackground, uint32 bakXr
// Last line of tiles is FULL WIDTH!
uint32 tileHeight = (remainingTiles == xresInTiles * 2) ? 16 : 8;
- halfres_buffer = (uint8*) malloc(bakXres * 16 * 2);
+ halfres_buffer = (uint8 *)malloc(bakXres * 16 * 2);
memset(halfres_buffer, 0, bakXres * 16 * 2);
tileXpos = 0;
diff --git a/engines/sword1/screen.h b/engines/sword1/screen.h
index da150a583c..8a9f9bcc92 100644
--- a/engines/sword1/screen.h
+++ b/engines/sword1/screen.h
@@ -116,8 +116,8 @@ private:
void drawSprite(uint8 *sprData, uint16 sprX, uint16 sprY, uint16 sprWidth, uint16 sprHeight, uint16 sprPitch);
void drawPsxHalfShrinkedSprite(uint8 *sprData, uint16 sprX, uint16 sprY, uint16 sprWidth, uint16 sprHeight, uint16 sprPitch);
void drawPsxFullShrinkedSprite(uint8 *sprData, uint16 sprX, uint16 sprY, uint16 sprWidth, uint16 sprHeight, uint16 sprPitch);
- uint8* psxBackgroundToIndexed(uint8* psxBackground, uint32 bakXres, uint32 bakYres);
- uint8* psxShrinkedBackgroundToIndexed(uint8* psxBackground, uint32 bakXres, uint32 bakYres);
+ uint8* psxBackgroundToIndexed(uint8 *psxBackground, uint32 bakXres, uint32 bakYres);
+ uint8* psxShrinkedBackgroundToIndexed(uint8 *psxBackground, uint32 bakXres, uint32 bakYres);
void fetchPsxParallaxSize(uint8 *psxParallax, uint16 *paraSizeX, uint16 *paraSizeY);
void drawPsxParallax(uint8 *psxParallax, uint16 paraScrlX, uint16 scrnScrlX, uint16 scrnWidth);
void decompressRLE7(uint8 *src, uint32 compSize, uint8 *dest);