aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/image_decoders.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-03-17 07:28:58 -0400
committerPaul Gilbert2016-03-17 07:28:58 -0400
commit5a3aa81ab628fce76a33a07dc97010bd4d439a4e (patch)
tree1d9d605b719f5e2b066d4b577b7a728e0d202464 /engines/titanic/image_decoders.cpp
parentc1f2912fc464dd17a840d74a7e545ee2dcfd485f (diff)
downloadscummvm-rg350-5a3aa81ab628fce76a33a07dc97010bd4d439a4e.tar.gz
scummvm-rg350-5a3aa81ab628fce76a33a07dc97010bd4d439a4e.tar.bz2
scummvm-rg350-5a3aa81ab628fce76a33a07dc97010bd4d439a4e.zip
TITANIC: Implemented CStdCWADFile class
Diffstat (limited to 'engines/titanic/image_decoders.cpp')
-rw-r--r--engines/titanic/image_decoders.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/titanic/image_decoders.cpp b/engines/titanic/image_decoders.cpp
index 896155d7b8..bf941f83b5 100644
--- a/engines/titanic/image_decoders.cpp
+++ b/engines/titanic/image_decoders.cpp
@@ -24,8 +24,8 @@
namespace Titanic {
-CJPEGDecode::CJPEGDecode(const CString &name): _file(name),
- _width(0), _height(0) {
+CJPEGDecode::CJPEGDecode(const CString &name) : _width(0), _height(0) {
+ _file.open(name);
}
void CJPEGDecode::decode(OSVideoSurface &surface) {
@@ -35,8 +35,7 @@ void CJPEGDecode::decode(OSVideoSurface &surface) {
/*------------------------------------------------------------------------*/
-CTargaDecode::CTargaDecode(const CString &name) : _file(name),
- _width(0), _height(0) {
+CTargaDecode::CTargaDecode(const CString &name) : _width(0), _height(0) {
}
void CTargaDecode::decode(OSVideoSurface &surface) {