mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 07:08:19 +00:00
Properly translate 1bpp source bits
svn path=/trunk/; revision=6596
This commit is contained in:
parent
8516382e25
commit
e459864561
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib.c,v 1.4 2003/09/27 09:27:45 navaraf Exp $ */
|
/* $Id: dib.c,v 1.5 2003/11/09 23:13:56 gvg Exp $ */
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <ddk/winddi.h>
|
#include <ddk/winddi.h>
|
||||||
|
@ -39,11 +39,11 @@ DIB_GetSource(SURFOBJ* SourceSurf, SURFGDI* SourceGDI, ULONG sx, ULONG sy, XLATE
|
||||||
case 1:
|
case 1:
|
||||||
if (DIB_1BPP_GetPixel(SourceSurf, sx, sy))
|
if (DIB_1BPP_GetPixel(SourceSurf, sx, sy))
|
||||||
{
|
{
|
||||||
return(XLATEOBJ_iXlate(ColorTranslation, 0));
|
return(XLATEOBJ_iXlate(ColorTranslation, 1));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return(XLATEOBJ_iXlate(ColorTranslation, 1));
|
return(XLATEOBJ_iXlate(ColorTranslation, 0));
|
||||||
}
|
}
|
||||||
case 4:
|
case 4:
|
||||||
if (ColorTranslation != NULL)
|
if (ColorTranslation != NULL)
|
||||||
|
|
Loading…
Reference in a new issue