Correct blending of SetPixel without alpha channel

This commit is contained in:
Simon Robertshaw 2012-07-27 21:04:00 +01:00
parent b612c076eb
commit 385552ceab

View File

@ -73,7 +73,7 @@ TPT_INLINE void VideoBuffer::SetPixel(int x, int y, int r, int g, int b, int a)
#ifdef PIX32OGL #ifdef PIX32OGL
Buffer[y*(Width)+x] = PIXRGBA(r,g,b,a); Buffer[y*(Width)+x] = PIXRGBA(r,g,b,a);
#else #else
Buffer[y*(Width)+x] = PIXRGB(r,g,b); Buffer[y*(Width)+x] = PIXRGB((r*a)>>8, (g*a)>>8, (b*a)>>8);
#endif #endif
} }