Module: wine
Branch: refs/heads/master
Commit: a64febd3d1fbe7ff7889f50f34fb75b5a1e3a56b
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a64febd3d1fbe7ff7889f50…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Sat Jul 22 01:02:09 2006 +0200
wined3d: Reactivate the X bits fixup.
---
dlls/wined3d/surface.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index fa4f615..0e90f13 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -861,7 +861,6 @@ static void flush_to_framebuffer_drawpix
case WINED3DFMT_X4R4G4B4:
{
-#if 0 /* Do we still need that? Those pixel formats have no alpha channel in gl any more */
int size;
unsigned short *data;
data = (unsigned short *)This->resource.allocatedMemory;
@@ -871,7 +870,6 @@ #if 0 /* Do we still need that? Th
data++;
size--;
}
-#endif
type = This->glDescription.glType;
fmt = This->glDescription.glFormat;
mem = This->resource.allocatedMemory;
@@ -880,7 +878,6 @@ #endif
case WINED3DFMT_X1R5G5B5:
{
-#if 0 /* Do we still need that? Those pixel formats have no alpha channel in gl any more */
int size;
unsigned short *data;
data = (unsigned short *)This->resource.allocatedMemory;
@@ -890,7 +887,6 @@ #if 0 /* Do we still need that? Th
data++;
size--;
}
-#endif
type = This->glDescription.glType;
fmt = This->glDescription.glFormat;
mem = This->resource.allocatedMemory;
@@ -899,7 +895,6 @@ #endif
case WINED3DFMT_X8R8G8B8:
{
-#if 0 /* Do we still need that? Those pixel formats have no alpha channel in gl any more */
/* make sure the X byte is set to alpha on, since it
could be any random value this fixes the intro move in Pirates! */
int size;
@@ -911,8 +906,8 @@ #if 0 /* Do we still need that? Th
data++;
size--;
}
-#endif
}
+ /* Fall trough */
case WINED3DFMT_A8R8G8B8:
{