Module: wine
Branch: master
Commit: 52ab9e382e7ac7a538a2688aee9cc2fb8367cc40
URL: http://source.winehq.org/git/wine.git/?a=commit;h=52ab9e382e7ac7a538a2688ae…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Tue Feb 17 23:09:37 2015 +0100
wined3d: Read WINED3D_TEXTURE_COLOR_KEY and gl_color_key to find format conversions.
The idea is to make it clear that wined3d_texture_load is responsible
for checking the color key for changes. Once we can do color keying in
the shader we also have one place where we can disable the surface
conversion.
---
dlls/wined3d/surface.c | 2 +-
dlls/wined3d/utils.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 06d8433..096579f 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4217,7 +4217,7 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
if (texture->swapchain && texture->swapchain->palette)
palette = texture->swapchain->palette;
conversion->convert(data.addr, src_pitch, mem, dst_pitch,
- width, height, palette, &texture->src_blt_color_key);
+ width, height, palette, &texture->gl_color_key);
src_pitch = dst_pitch;
data.addr = mem;
}
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 9e9fc49..1ce23ac 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -795,7 +795,7 @@ const struct wined3d_color_key_conversion * wined3d_format_get_color_key_convers
WINED3DFMT_B8G8R8A8_UNORM, convert_p8_uint_b8g8r8a8_unorm
};
- if (need_alpha_ck && (texture->color_key_flags & WINED3D_CKEY_SRC_BLT))
+ if (need_alpha_ck && (texture->flags & WINED3D_TEXTURE_COLOR_KEY))
{
for (i = 0; i < sizeof(color_key_info) / sizeof(*color_key_info); ++i)
{
Module: wine
Branch: master
Commit: 91cba2f1a8dc96056739168390342b8325704bc6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=91cba2f1a8dc9605673916839…
Author: Austin English <austinenglish(a)gmail.com>
Date: Thu Feb 12 10:58:02 2015 -0800
xapofx1_5: Add stub dll.
---
configure | 2 ++
configure.ac | 1 +
dlls/xapofx1_5/Makefile.in | 4 ++++
dlls/xapofx1_5/main.c | 37 +++++++++++++++++++++++++++++++++++++
dlls/xapofx1_5/xapofx1_5.spec | 1 +
5 files changed, 45 insertions(+)
diff --git a/configure b/configure
index abef0c3..0deacd1 100755
--- a/configure
+++ b/configure
@@ -1325,6 +1325,7 @@ enable_wuapi
enable_wuaueng
enable_x3daudio1_7
enable_xapofx1_1
+enable_xapofx1_5
enable_xaudio2_7
enable_xinput1_1
enable_xinput1_2
@@ -17675,6 +17676,7 @@ wine_fn_config_dll wuapi enable_wuapi clean
wine_fn_config_dll wuaueng enable_wuaueng
wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7
wine_fn_config_dll xapofx1_1 enable_xapofx1_1
+wine_fn_config_dll xapofx1_5 enable_xapofx1_5
wine_fn_config_dll xaudio2_7 enable_xaudio2_7
wine_fn_config_dll xinput1_1 enable_xinput1_1
wine_fn_config_dll xinput1_2 enable_xinput1_2
diff --git a/configure.ac b/configure.ac
index 2e6cb4c..11a3b78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3386,6 +3386,7 @@ WINE_CONFIG_DLL(wuapi,,[clean])
WINE_CONFIG_DLL(wuaueng)
WINE_CONFIG_DLL(x3daudio1_7)
WINE_CONFIG_DLL(xapofx1_1)
+WINE_CONFIG_DLL(xapofx1_5)
WINE_CONFIG_DLL(xaudio2_7)
WINE_CONFIG_DLL(xinput1_1)
WINE_CONFIG_DLL(xinput1_2)
diff --git a/dlls/xapofx1_5/Makefile.in b/dlls/xapofx1_5/Makefile.in
new file mode 100644
index 0000000..e0c6e9a
--- /dev/null
+++ b/dlls/xapofx1_5/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = xapofx1_5.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/xapofx1_5/main.c b/dlls/xapofx1_5/main.c
new file mode 100644
index 0000000..1b223ad
--- /dev/null
+++ b/dlls/xapofx1_5/main.c
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2015 Austin English
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
+{
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(instance);
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/xapofx1_5/xapofx1_5.spec b/dlls/xapofx1_5/xapofx1_5.spec
new file mode 100644
index 0000000..33269e3
--- /dev/null
+++ b/dlls/xapofx1_5/xapofx1_5.spec
@@ -0,0 +1 @@
+@ stub CreateFX