Skip to content

Commit

Permalink
IMAGE: Fix build when not using libjpeg-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Apr 28, 2019
1 parent 8ffa737 commit efcd8ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image/jpeg.cpp
Expand Up @@ -184,6 +184,7 @@ void outputMessage(j_common_ptr cinfo) {
}

J_COLOR_SPACE fromScummvmPixelFormat(const Graphics::PixelFormat &format) {
#if defined(JCS_EXTENSIONS) or defined(JCS_ALPHA_EXTENSIONS)
struct PixelFormatMapping {
Graphics::PixelFormat pixelFormat;
J_COLOR_SPACE bigEndianColorSpace;
Expand Down Expand Up @@ -219,6 +220,7 @@ J_COLOR_SPACE fromScummvmPixelFormat(const Graphics::PixelFormat &format) {
#endif
}
}
#endif

return JCS_UNKNOWN;
}
Expand Down

0 comments on commit efcd8ab

Please sign in to comment.