mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-01 06:58:34 +00:00
WINTERMUTE: Deprecate setAlphaMod, setColorMod
This commit is contained in:
parent
285ed18979
commit
ae589c41ff
@ -60,8 +60,7 @@ BaseRenderOSystem::BaseRenderOSystem(BaseGame *inGame) : BaseRenderer(inGame) {
|
||||
|
||||
_borderLeft = _borderRight = _borderTop = _borderBottom = 0;
|
||||
_ratioX = _ratioY = 1.0f;
|
||||
setAlphaMod(255);
|
||||
setColorMod(255, 255, 255);
|
||||
_colorMod = 0xFFFFFFFF;
|
||||
_dirtyRect = nullptr;
|
||||
_disableDirtyRects = false;
|
||||
_tempDisableDirtyRects = 0;
|
||||
@ -151,15 +150,11 @@ bool BaseRenderOSystem::initRenderer(int width, int height, bool windowed) {
|
||||
}
|
||||
|
||||
void BaseRenderOSystem::setAlphaMod(byte alpha) {
|
||||
byte r = RGBCOLGetR(_colorMod);
|
||||
byte g = RGBCOLGetB(_colorMod);
|
||||
byte b = RGBCOLGetB(_colorMod);
|
||||
_colorMod = BS_ARGB(alpha, r, g, b);
|
||||
error("DEPRECATED: BaseRenderOSystem::setAlphaMod(byte alpha)");
|
||||
}
|
||||
|
||||
void BaseRenderOSystem::setColorMod(byte r, byte g, byte b) {
|
||||
byte alpha = RGBCOLGetA(_colorMod);
|
||||
_colorMod = BS_ARGB(alpha, r, g, b);
|
||||
error("DEPRECATED: void BaseRenderOSystem::setColorMod(byte r, byte g, byte b)");
|
||||
}
|
||||
|
||||
bool BaseRenderOSystem::indicatorFlip() {
|
||||
@ -278,8 +273,6 @@ void BaseRenderOSystem::fadeToColor(byte r, byte g, byte b, byte a, Common::Rect
|
||||
//TODO: This is only here until I'm sure about the final pixelformat
|
||||
uint32 col = _renderSurface->format.ARGBToColor(a, r, g, b);
|
||||
|
||||
setAlphaMod(255);
|
||||
setColorMod(255, 255, 255);
|
||||
Graphics::Surface surf;
|
||||
surf.create((uint16)fillRect.width(), (uint16)fillRect.height(), _renderSurface->format);
|
||||
Common::Rect sizeRect(fillRect);
|
||||
|
@ -380,14 +380,6 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, Rect32 *newRect,
|
||||
transform._rgbaMod = renderer->_forceAlphaColor;
|
||||
}
|
||||
|
||||
byte r = RGBCOLGetR(transform._rgbaMod);
|
||||
byte g = RGBCOLGetG(transform._rgbaMod);
|
||||
byte b = RGBCOLGetB(transform._rgbaMod);
|
||||
byte a = RGBCOLGetA(transform._rgbaMod);
|
||||
|
||||
renderer->setAlphaMod(a);
|
||||
renderer->setColorMod(r, g, b);
|
||||
|
||||
#if 0 // These are kept for reference if BlendMode is reimplemented at some point.
|
||||
if (alphaDisable) {
|
||||
SDL_SetTextureBlendMode(_texture, SDL_BLENDMODE_NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user