From 685385635fe87742732174365daa03264b0d5ed6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 26 Jan 2016 12:05:40 +0100 Subject: [PATCH] - made adjustments to FGLBitmap for the changes in its base class. --- src/gl/textures/gl_bitmap.cpp | 14 ++++++++------ src/gl/textures/gl_bitmap.h | 4 +++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/gl/textures/gl_bitmap.cpp b/src/gl/textures/gl_bitmap.cpp index a2319f67c..991ebc650 100644 --- a/src/gl/textures/gl_bitmap.cpp +++ b/src/gl/textures/gl_bitmap.cpp @@ -51,28 +51,30 @@ // //=========================================================================== template -void iCopyColors(unsigned char * pout, const unsigned char * pin, int count, int step) +void iCopyColors(unsigned char * pout, const unsigned char * pin, int count, int step, BYTE tr, BYTE tg, BYTE tb) { int i; + unsigned char a; for(i=0;i, + iCopyColors, iCopyColors, iCopyColors, iCopyColors, @@ -92,14 +94,14 @@ static CopyFunc copyfuncs[]={ //=========================================================================== void FGLBitmap::CopyPixelDataRGB(int originx, int originy, const BYTE * patch, int srcwidth, int srcheight, int step_x, int step_y, - int rotate, int ct, FCopyInfo *inf) + int rotate, int ct, FCopyInfo *inf, int r, int g, int b) { if (ClipCopyPixelRect(&ClipRect, originx, originy, patch, srcwidth, srcheight, step_x, step_y, rotate)) { BYTE *buffer = GetPixels() + 4*originx + Pitch*originy; for (int y=0;y