From a82148e887542751ac7f47b19ac72600714f122d Mon Sep 17 00:00:00 2001 From: James Turk Date: Mon, 10 Feb 2003 02:40:35 +0000 Subject: [PATCH] Fixed color key, Thanks Kevin\! --- src/ZE_ZImage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZE_ZImage.cpp b/src/ZE_ZImage.cpp index 961bb82..578e60d 100644 --- a/src/ZE_ZImage.cpp +++ b/src/ZE_ZImage.cpp @@ -13,7 +13,7 @@ File: ZE_ZImage.cpp
Description: Implementation source file for core ZEngine Image or Texture Object.
Author(s): James Turk, Gamer Tazar
-$Id: ZE_ZImage.cpp,v 1.22 2003/01/30 04:02:01 cozman Exp $
+$Id: ZE_ZImage.cpp,v 1.23 2003/02/10 02:40:35 cozman Exp $
\file ZE_ZImage.cpp \brief Source file for ZImage. @@ -161,7 +161,7 @@ void ZImage::SetAlpha(Uint8 alpha) void ZImage::SetColorKey(Uint8 red, Uint8 green, Uint8 blue) { SDL_Surface *temp=NULL; - Uint32 color = SDL_MapRGB(rEngine->Display()->format,red,green,blue); + Uint32 color = SDL_MapRGB(rImage->format,red,green,blue); if(rImage) {