[Scummvm-cvs-logs] CVS: scummex image.cpp,1.20,1.21 wxwindows.cpp,1.32,1.33
Adrien Mercier
yoshizf at users.sourceforge.net
Tue Sep 30 01:47:01 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,2.98,2.99 imuse_internal.h,2.24,2.25
- Next message: [Scummvm-cvs-logs] CVS: scummvm/bs2 anims.cpp,1.19,1.20 build_display.cpp,1.26,1.27 console.cpp,1.12,1.13 controls.cpp,1.20,1.21 debug.cpp,1.11,1.12 defs.h,1.2,1.3 function.cpp,1.19,1.20 icons.cpp,1.9,1.10 layers.cpp,1.8,1.9 logic.cpp,1.16,1.17 maketext.cpp,1.15,1.16 mem_view.cpp,1.10,1.11 memory.cpp,1.8,1.9 memory.h,1.2,1.3 mouse.cpp,1.18,1.19 protocol.cpp,1.11,1.12 resman.cpp,1.45,1.46 resman.h,1.4,1.5 router.cpp,1.16,1.17 save_rest.cpp,1.20,1.21 sound.cpp,1.18,1.19 speech.cpp,1.24,1.25 startup.cpp,1.14,1.15 sword2.cpp,1.43,1.44 walker.cpp,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummex
In directory sc8-pr-cvs1:/tmp/cvs-serv6160
Modified Files:
image.cpp wxwindows.cpp
Log Message:
Fixed boxes displaying with 0 width/height, and looking in the good struct for old blocks icons.
Index: image.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummex/image.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- image.cpp 28 Sep 2003 09:51:07 -0000 1.20
+++ image.cpp 30 Sep 2003 08:46:12 -0000 1.21
@@ -149,7 +149,7 @@
}
void Image::drawBoxes(BlockTable *_blockTable, int id, File& _input) {
- int nBox, RMHDindex, width, height, version = 5;
+ int nBox, RMHDindex, version = 5;
if (_blockTable[id].blockTypeID == BM || _blockTable[id].blockTypeID == BX) {
version = 3;
@@ -158,8 +158,8 @@
RMHDindex = _resource->findBlock(0, _blockTable, id, "RMHD", NULL);
}
- width = _blockTable[RMHDindex].width;
- height = _blockTable[RMHDindex].height;
+ _width = _blockTable[RMHDindex].width;
+ _height = _blockTable[RMHDindex].height;
if ( _resource->findBlock(0, _blockTable, id, "IMAG", NULL) != -1) {
version = 8;
Index: wxwindows.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummex/wxwindows.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- wxwindows.cpp 30 Sep 2003 00:38:43 -0000 1.32
+++ wxwindows.cpp 30 Sep 2003 08:46:12 -0000 1.33
@@ -873,7 +873,11 @@
val2 = SpecButton2->Disconnect(ID_SpecButton2, wxEVT_COMMAND_BUTTON_CLICKED);
itemtype = item->_blockType;
- bigIconBitmap = _bigIcon[blocksInfo[itemtype].iconid];
+ if (itemtype < 200)
+ bigIconBitmap = _bigIcon[blocksInfo[itemtype].iconid];
+ else
+ bigIconBitmap = _bigIcon[oldBlocksInfo[itemtype-200].iconid];
+
BigIcon->SetBitmap(bigIconBitmap);
if (blocksInfo[itemtype].html == 1) {
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm imuse.cpp,2.98,2.99 imuse_internal.h,2.24,2.25
- Next message: [Scummvm-cvs-logs] CVS: scummvm/bs2 anims.cpp,1.19,1.20 build_display.cpp,1.26,1.27 console.cpp,1.12,1.13 controls.cpp,1.20,1.21 debug.cpp,1.11,1.12 defs.h,1.2,1.3 function.cpp,1.19,1.20 icons.cpp,1.9,1.10 layers.cpp,1.8,1.9 logic.cpp,1.16,1.17 maketext.cpp,1.15,1.16 mem_view.cpp,1.10,1.11 memory.cpp,1.8,1.9 memory.h,1.2,1.3 mouse.cpp,1.18,1.19 protocol.cpp,1.11,1.12 resman.cpp,1.45,1.46 resman.h,1.4,1.5 router.cpp,1.16,1.17 save_rest.cpp,1.20,1.21 sound.cpp,1.18,1.19 speech.cpp,1.24,1.25 startup.cpp,1.14,1.15 sword2.cpp,1.43,1.44 walker.cpp,1.8,1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list