mirror of https://github.com/stella-emu/stella.git
Updated Win32 project files for recent TIA restructuring.
Fixed crash in displaying snapshot images. Strange that I didn't spot that one in Linux. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1649 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
831f4ac132
commit
812c1bc941
|
@ -13,7 +13,7 @@
|
||||||
// See the file "license" for information on usage and redistribution of
|
// See the file "license" for information on usage and redistribution of
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//
|
//
|
||||||
// $Id: RomInfoWidget.cxx,v 1.17 2009-01-16 16:38:06 stephena Exp $
|
// $Id: RomInfoWidget.cxx,v 1.18 2009-01-20 21:58:50 stephena Exp $
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
@ -289,8 +289,7 @@ bool RomInfoWidget::parseIDATChunk(FBSurface* surface, int width, int height,
|
||||||
mySurface->setHeight(sh);
|
mySurface->setHeight(sh);
|
||||||
|
|
||||||
// Decompress the image, and scale it correctly
|
// Decompress the image, and scale it correctly
|
||||||
uInt32 ipitch = width * 3 + 1, // bytes per line of the actual PNG image
|
uInt32 ipitch = width * 3 + 1; // bytes per line of the actual PNG image
|
||||||
spitch = sw * 3; // bytes per line of the surface/line
|
|
||||||
uLongf bufsize = ipitch * height;
|
uLongf bufsize = ipitch * height;
|
||||||
uInt8* buffer = new uInt8[bufsize];
|
uInt8* buffer = new uInt8[bufsize];
|
||||||
uInt32* line = new uInt32[ipitch];
|
uInt32* line = new uInt32[ipitch];
|
||||||
|
@ -323,7 +322,7 @@ bool RomInfoWidget::parseIDATChunk(FBSurface* surface, int width, int height,
|
||||||
// Then fill the surface with those bytes
|
// Then fill the surface with those bytes
|
||||||
uInt32 ystride = myZoomLevel;
|
uInt32 ystride = myZoomLevel;
|
||||||
while(ystride--)
|
while(ystride--)
|
||||||
surface->drawPixels(line, 0, srow++, spitch);
|
surface->drawPixels(line, 0, srow++, sw);
|
||||||
}
|
}
|
||||||
delete[] buffer;
|
delete[] buffer;
|
||||||
delete[] line;
|
delete[] line;
|
||||||
|
|
|
@ -581,10 +581,6 @@
|
||||||
RelativePath="..\emucore\MediaFactory.cxx"
|
RelativePath="..\emucore\MediaFactory.cxx"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\emucore\MediaSrc.cxx"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\emucore\MT24LC256.cxx"
|
RelativePath="..\emucore\MT24LC256.cxx"
|
||||||
>
|
>
|
||||||
|
@ -645,6 +641,10 @@
|
||||||
RelativePath="..\emucore\TIASnd.cxx"
|
RelativePath="..\emucore\TIASnd.cxx"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\emucore\TIATables.cxx"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\emucore\TrackBall.cxx"
|
RelativePath="..\emucore\TrackBall.cxx"
|
||||||
>
|
>
|
||||||
|
@ -1191,10 +1191,6 @@
|
||||||
RelativePath="..\emucore\MediaFactory.hxx"
|
RelativePath="..\emucore\MediaFactory.hxx"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\emucore\MediaSrc.hxx"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath="..\emucore\MT24LC256.hxx"
|
RelativePath="..\emucore\MT24LC256.hxx"
|
||||||
>
|
>
|
||||||
|
@ -1263,6 +1259,10 @@
|
||||||
RelativePath="..\emucore\TIASnd.hxx"
|
RelativePath="..\emucore\TIASnd.hxx"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\emucore\TIATables.hxx"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\emucore\TrackBall.hxx"
|
RelativePath="..\emucore\TrackBall.hxx"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue