[Scummvm-git-logs] scummvm master -> cb22589207698b0a3587a7462bb9b66a898dd36d
dreammaster
dreammaster at scummvm.org
Sat Jul 3 23:21:08 UTC 2021
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:
cb22589207 AGS: Fix for intro text rendering in Maniac Mansion Deluxe
Commit: cb22589207698b0a3587a7462bb9b66a898dd36d
https://github.com/scummvm/scummvm/commit/cb22589207698b0a3587a7462bb9b66a898dd36d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-07-03T16:20:56-07:00
Commit Message:
AGS: Fix for intro text rendering in Maniac Mansion Deluxe
Changed paths:
engines/ags/shared/gfx/allegro_bitmap.cpp
diff --git a/engines/ags/shared/gfx/allegro_bitmap.cpp b/engines/ags/shared/gfx/allegro_bitmap.cpp
index 3c2e96ced9..b7ea8dfd08 100644
--- a/engines/ags/shared/gfx/allegro_bitmap.cpp
+++ b/engines/ags/shared/gfx/allegro_bitmap.cpp
@@ -151,8 +151,9 @@ void Bitmap::SetMaskColor(color_t color) {
}
color_t Bitmap::GetCompatibleColor(color_t color) {
- byte r = getr16(color), g = getg16(color), b = getb16(color);
- return (color_t)_alBitmap->format.RGBToColor(r, g, b);
+ color_t compat_color = 0;
+ __my_setcolor(&compat_color, color, bitmap_color_depth(_alBitmap));
+ return compat_color;
}
//=============================================================================
More information about the Scummvm-git-logs
mailing list