Author: jgardou
Date: Sat Mar 30 21:58:45 2013
New Revision: 58619
URL:
http://svn.reactos.org/svn/reactos?rev=58619&view=rev
Log:
[WINED3D]
* Get GDI device name even if opengl isn't used.
Modified:
trunk/reactos/dll/directx/wine/wined3d/directx.c
Modified: trunk/reactos/dll/directx/wine/wined3d/directx.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/wined3d/d…
==============================================================================
--- trunk/reactos/dll/directx/wine/wined3d/directx.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/wine/wined3d/directx.c [iso-8859-1] Sat Mar 30 21:58:45
2013
@@ -5233,6 +5233,8 @@
static void wined3d_adapter_init_nogl(struct wined3d_adapter *adapter, UINT ordinal)
{
+ DISPLAY_DEVICEW display_device;
+
memset(adapter, 0, sizeof(*adapter));
adapter->ordinal = ordinal;
adapter->monitorPoint.x = -1;
@@ -5250,6 +5252,11 @@
adapter->fragment_pipe = &none_fragment_pipe;
adapter->shader_backend = &none_shader_backend;
adapter->blitter = &cpu_blit;
+
+ display_device.cb = sizeof(display_device);
+ EnumDisplayDevicesW(NULL, ordinal, &display_device, 0);
+ TRACE("DeviceName: %s\n", debugstr_w(display_device.DeviceName));
+ strcpyW(adapter->DeviceName, display_device.DeviceName);
}
static void STDMETHODCALLTYPE wined3d_null_wined3d_object_destroyed(void *parent) {}