From cc8f59d85019e5fbbfeee8576b397c808ae67bc0 Mon Sep 17 00:00:00 2001 From: Marco Antonio Jaguaribe Costa Date: Sun, 15 Dec 2024 02:55:09 -0300 Subject: [PATCH] hide this function until I know what to do with it --- sgp/PngLoader.cpp | 4 ++-- sgp/PngLoader.h | 2 +- sgp/himage.cpp | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sgp/PngLoader.cpp b/sgp/PngLoader.cpp index 93daede1f..341c03b4b 100644 --- a/sgp/PngLoader.cpp +++ b/sgp/PngLoader.cpp @@ -640,7 +640,7 @@ bool LoadPNGFileToImage(HIMAGE hImage, UINT16 fContents) return true; } - +/* bool LoadJPCFileToImage(HIMAGE hImage, UINT16 fContents) { if(!getVFS()->fileExists(hImage->ImageFile)) @@ -810,7 +810,7 @@ bool LoadJPCFileToImage(HIMAGE hImage, UINT16 fContents) } return success; } - +*/ void Load32bppPNGImage(HIMAGE hImage, png::png_bytepp rows, png::png_infop info) { diff --git a/sgp/PngLoader.h b/sgp/PngLoader.h index c4631ce39..360006721 100644 --- a/sgp/PngLoader.h +++ b/sgp/PngLoader.h @@ -6,7 +6,7 @@ bool LoadPNGFileToImage(HIMAGE hImage, UINT16 fContents); -bool LoadJPCFileToImage(HIMAGE hImage, UINT16 fContents); +//bool LoadJPCFileToImage(HIMAGE hImage, UINT16 fContents); #endif // _PNGLOADER_H_ diff --git a/sgp/himage.cpp b/sgp/himage.cpp index f2c84bdd7..8a77994b4 100644 --- a/sgp/himage.cpp +++ b/sgp/himage.cpp @@ -261,10 +261,11 @@ BOOLEAN LoadImageData( HIMAGE hImage, UINT16 fContents ) fReturnVal = LoadPNGFileToImage( hImage, fContents ); break; + /* case JPC_FILE_READER: fReturnVal = LoadJPCFileToImage( hImage, fContents ); break; - + */ default: DbgMessage( TOPIC_HIMAGE, DBG_LEVEL_2, "Unknown image loader was specified." );