[Scummvm-git-logs] scummvm master -> f0364b9d1158d652f424a56a57487ed700c2accb

digitall noreply at scummvm.org
Tue Mar 15 09:36:45 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f0364b9d11 AGS: Fix Unused Variable Compiler Warning


Commit: f0364b9d1158d652f424a56a57487ed700c2accb
    https://github.com/scummvm/scummvm/commit/f0364b9d1158d652f424a56a57487ed700c2accb
Author: D G Turner (digitall at scummvm.org)
Date: 2022-03-15T09:36:16Z

Commit Message:
AGS: Fix Unused Variable Compiler Warning

Changed paths:
    engines/ags/engine/ac/draw.cpp


diff --git a/engines/ags/engine/ac/draw.cpp b/engines/ags/engine/ac/draw.cpp
index e0177b19098..fd26f053966 100644
--- a/engines/ags/engine/ac/draw.cpp
+++ b/engines/ags/engine/ac/draw.cpp
@@ -155,7 +155,9 @@ Bitmap *convert_32_to_32bgr(Bitmap *tempbl) {
 //
 Bitmap *AdjustBitmapForUseWithDisplayMode(Bitmap *bitmap, bool has_alpha) {
 	const int bmp_col_depth = bitmap->GetColorDepth();
+#if defined (AGS_INVERTED_COLOR_ORDER)
 	const int sys_col_depth = System_GetColorDepth();
+#endif
 	const int game_col_depth = _GP(game).GetColorDepth();
 	const int compat_col_depth = _G(gfxDriver)->GetCompatibleBitmapFormat(game_col_depth);
 




More information about the Scummvm-git-logs mailing list