Removed W->A from DEFWND_ImmIsUIMessageW.
[wine] / dlls / d3d9 / d3d9_main.c
1 /*
2  * Direct3D 9
3  *
4  * Copyright 2002-2003 Jason Edmeades
5  *                     Raphael Junqueira
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  */
22
23 #include "config.h"
24 #include "d3d9_private.h"
25
26 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
27
28 void (*wine_tsx11_lock_ptr)(void) = NULL;
29 void (*wine_tsx11_unlock_ptr)(void) = NULL;
30
31
32 HRESULT WINAPI D3D9GetSWInfo(void) {
33     FIXME("(void): stub\n");
34     return 0;
35 }
36
37 void WINAPI DebugSetMute(void) {
38     /* nothing to do */
39 }
40
41 IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) {
42     IDirect3D9Impl* object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D9Impl));
43
44     object->lpVtbl = &Direct3D9_Vtbl;
45     object->ref = 1;
46     object->WineD3D = WineDirect3DCreate(SDKVersion, 9);
47
48     TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion, object, object->WineD3D);
49
50     return (IDirect3D9*) object;
51 }
52
53 /* At process attach */
54 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) {
55     TRACE("fdwReason=%ld\n", fdwReason);
56     if (fdwReason == DLL_PROCESS_ATTACH) {
57         HMODULE mod;
58
59         DisableThreadLibraryCalls(hInstDLL);
60
61         mod = GetModuleHandleA( "x11drv.dll" );
62         if (mod)
63         {
64             wine_tsx11_lock_ptr   = (void*) GetProcAddress(mod, "wine_tsx11_lock");
65             wine_tsx11_unlock_ptr = (void*) GetProcAddress(mod, "wine_tsx11_unlock");
66         }
67     }
68     return TRUE;
69 }
70
71 /***********************************************************************
72  *              ValidateVertexShader (D3D9.@)
73  */
74 BOOL WINAPI ValidateVertexShader(LPVOID what, LPVOID toto) {
75   FIXME("(void): stub: %p %p\n", what, toto);
76   return TRUE;
77 }
78
79 /***********************************************************************
80  *              ValidatePixelShader (D3D9.@)
81  */
82 BOOL WINAPI ValidatePixelShader(LPVOID what, LPVOID toto) {
83   FIXME("(void): stub: %p %p\n", what, toto);
84   return TRUE;
85 }