Make sure alpha = 0xFF in all cases.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
9fabc71464
commit
156d1421e0
1 changed files with 13 additions and 7 deletions
|
@ -35,6 +35,14 @@ static LPBYTE g_aSourceStartofLine[ MAX_SOURCE_Y ];
|
|||
// . V_CreateLookup_HiResHalfPixel_Authentic() uses both ColorMapping (CM_xxx) indices and Color_Palette_Index_e (HGR_xxx)!
|
||||
#define DO_OPT_PALETTE 0
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define BACKGOUND_BLACK 0x00000000
|
||||
#define SETRGBCOLOR(r,g,b) {b,g,r,0x00}
|
||||
#else
|
||||
#define BACKGOUND_BLACK 0xFF000000
|
||||
#define SETRGBCOLOR(r,g,b) {b,g,r,0xFF}
|
||||
#endif
|
||||
|
||||
enum Color_Palette_Index_e
|
||||
{
|
||||
// hires (don't change order) - For tv emulation HGR Video Mode
|
||||
|
@ -116,8 +124,6 @@ const BYTE DoubleHiresPalIndex[16] = {
|
|||
ORANGE, PINK, YELLOW, WHITE
|
||||
};
|
||||
|
||||
#define SETRGBCOLOR(r,g,b) {b,g,r,0xFF}
|
||||
|
||||
static RGBQUAD* g_pPaletteRGB;
|
||||
|
||||
static RGBQUAD PaletteRGB_NTSC[] =
|
||||
|
@ -540,7 +546,7 @@ static void CopyMixedSource(int x, int y, int sx, int sy, bgra_t *pVideoAddress)
|
|||
if (bIsHalfScanLines && (h & 1))
|
||||
{
|
||||
// 50% Half Scan Line clears every odd scanline (and SHIFT+PrintScreen saves only the even rows)
|
||||
*(pDst+nBytes) = 0xFF000000;
|
||||
*(pDst+nBytes) = BACKGOUND_BLACK;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -570,7 +576,7 @@ static void CopySource(int w, int h, int sx, int sy, bgra_t *pVideoAddress, cons
|
|||
if (bIsHalfScanLines && !(h & 1))
|
||||
{
|
||||
// 50% Half Scan Line clears every odd scanline (and SHIFT+PrintScreen saves only the even rows)
|
||||
std::fill(pDst, pDst + w, 0xFF000000);
|
||||
std::fill(pDst, pDst + w, BACKGOUND_BLACK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -738,7 +744,7 @@ void UpdateHiResRGBCell(int x, int y, uint16_t addr, bgra_t* pVideoAddress)
|
|||
if (bIsHalfScanLines)
|
||||
{
|
||||
// Scanlines
|
||||
std::fill(pDst, pDst + 14, 0);
|
||||
std::fill(pDst, pDst + 14, BACKGOUND_BLACK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -953,7 +959,7 @@ void UpdateDHiResCellRGB(int x, int y, uint16_t addr, bgra_t* pVideoAddress, boo
|
|||
if (bIsHalfScanLines)
|
||||
{
|
||||
// Scanlines
|
||||
std::fill(pDst, pDst + 14, 0);
|
||||
std::fill(pDst, pDst + 14, BACKGOUND_BLACK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1142,7 +1148,7 @@ void UpdateDuochromeCell(int h, int w, bgra_t* pVideoAddress, uint8_t bits, uint
|
|||
if (bIsHalfScanLines && !(h & 1))
|
||||
{
|
||||
// 50% Half Scan Line clears every odd scanline (and SHIFT+PrintScreen saves only the even rows)
|
||||
std::fill(pDst, pDst + w, 0);
|
||||
std::fill(pDst, pDst + w, BACKGOUND_BLACK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue