Author: fireball
Date: Mon Oct 13 11:10:06 2014
New Revision: 64715
URL:
http://svn.reactos.org/svn/reactos?rev=64715&view=rev
Log:
[ARWINSS]
- Stubplement some gdi32 OpenGL functions, imported by opengl.dll.
- Get rid of NONAMELESSUNION in exticon.c. I'm tired of changing those u2.s2 every
time they change.
Modified:
branches/arwinss/arwinss/client/gdi32/gdi32.spec
branches/arwinss/arwinss/client/gdi32/opengl.c
branches/arwinss/arwinss/client/user32/exticon.c
Modified: branches/arwinss/arwinss/client/gdi32/gdi32.spec
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/arwinss/client/gdi32/gd…
==============================================================================
--- branches/arwinss/arwinss/client/gdi32/gdi32.spec [iso-8859-1] (original)
+++ branches/arwinss/arwinss/client/gdi32/gdi32.spec [iso-8859-1] Mon Oct 13 11:10:06
2014
@@ -280,7 +280,7 @@
@ stdcall GdiDeleteLocalDC(ptr)
@ stub GdiDeleteLocalObject
@ stub GdiDeleteSpoolFileHandle
-@ stub GdiDescribePixelFormat
+@ stdcall GdiDescribePixelFormat(ptr long long ptr)
@ stub GdiDllInitialize
@ stub GdiDrawStream
@ stub GdiEndDocEMF
@@ -340,11 +340,11 @@
@ stdcall GdiSetAttrs(ptr)
@ stdcall GdiSetBatchLimit(long)
@ stub GdiSetLastError
-@ stub GdiSetPixelFormat
+@ stdcall GdiSetPixelFormat(ptr long)
@ stub GdiSetServerAttr
@ stub GdiStartDocEMF
@ stub GdiStartPageEMF
-@ stub GdiSwapBuffers
+@ stdcall GdiSwapBuffers(ptr)
@ stdcall GdiTransparentBlt(long long long long long long long long long long long)
@ stub GdiValidateHandle
@ stub GdiWinWatchClose
Modified: branches/arwinss/arwinss/client/gdi32/opengl.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/arwinss/client/gdi32/op…
==============================================================================
--- branches/arwinss/arwinss/client/gdi32/opengl.c [iso-8859-1] (original)
+++ branches/arwinss/arwinss/client/gdi32/opengl.c [iso-8859-1] Mon Oct 13 11:10:06 2014
@@ -395,3 +395,34 @@
return ret;
}
+
+INT
+WINAPI
+GdiDescribePixelFormat(
+ HDC hdc,
+ INT ipfd,
+ UINT cjpfd,
+ PPIXELFORMATDESCRIPTOR ppfd)
+{
+ UNIMPLEMENTED;
+ return 0;
+}
+
+BOOL
+WINAPI
+GdiSetPixelFormat(
+ HDC hdc,
+ INT ipfd)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+BOOL
+WINAPI
+GdiSwapBuffers(
+ HDC hdc)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
Modified: branches/arwinss/arwinss/client/user32/exticon.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/arwinss/client/user32/e…
==============================================================================
--- branches/arwinss/arwinss/client/user32/exticon.c [iso-8859-1] (original)
+++ branches/arwinss/arwinss/client/user32/exticon.c [iso-8859-1] Mon Oct 13 11:10:06
2014
@@ -32,7 +32,7 @@
# include <unistd.h>
#endif
-#define NONAMELESSUNION
+//#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
@@ -119,9 +119,9 @@
while (min <= max)
{
pos = (min + max) / 2;
- if (entry[pos].u1.Id == id)
- return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root +
entry[pos].u2.s2.OffsetToDirectory);
- if (entry[pos].u1.Id > id) max = pos - 1;
+ if (entry[pos].Id == id)
+ return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root +
entry[pos].OffsetToDirectory);
+ if (entry[pos].Id > id) max = pos - 1;
else min = pos + 1;
}
return NULL;
@@ -138,7 +138,7 @@
{
const IMAGE_RESOURCE_DIRECTORY_ENTRY *entry;
entry = (const IMAGE_RESOURCE_DIRECTORY_ENTRY *)(dir + 1);
- return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root +
entry->u2.s2.OffsetToDirectory);
+ return (const IMAGE_RESOURCE_DIRECTORY *)((const char *)root +
entry->OffsetToDirectory);
}
/*************************************************************************
@@ -488,7 +488,7 @@
while(n<iconDirCount && xprdeTmp)
{
- if(xprdeTmp->u1.Id == iId)
+ if(xprdeTmp->Id == iId)
{
nIconIndex = n;
break;
@@ -524,7 +524,7 @@
const IMAGE_RESOURCE_DIRECTORY *resdir;
/* go down this resource entry, name */
- resdir = (const IMAGE_RESOURCE_DIRECTORY *)((const char *)rootresdir +
xresent->u2.s2.OffsetToDirectory);
+ resdir = (const IMAGE_RESOURCE_DIRECTORY *)((const char *)rootresdir +
xresent->OffsetToDirectory);
/* default language (0) */
resdir = find_entry_default(resdir,rootresdir);