Author: greatlrd
Date: Mon May 5 14:42:23 2008
New Revision: 33305
URL:
http://svn.reactos.org/svn/reactos?rev=33305&view=rev
Log:
bye bye DXG_GET_INDEX_FUNCTION
patch from Stefan Ginsberg stefan__100__at hotmail dot com
it remove the bad macro DXG_GET_INDEX_FUNCTION that never worked as it should.
Modified:
trunk/reactos/subsystems/win32/win32k/include/intddraw.h
trunk/reactos/subsystems/win32/win32k/ntddraw/dvp.c
Modified: trunk/reactos/subsystems/win32/win32k/include/intddraw.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/intddraw.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/intddraw.h [iso-8859-1] Mon May 5
14:42:23 2008
@@ -108,18 +108,6 @@
typedef PDD_SURFACE_LOCAL (NTAPI *PGD_ENGLOCKDIRECTDRAWSURFACE)(HANDLE);
typedef BOOL (NTAPI *PGD_ENGUNLOCKDIRECTDRAWSURFACE)(PDD_SURFACE_LOCAL);
-
-/* Standard macro */
-#define DXG_GET_INDEX_FUNCTION(INDEX, FUNCTION) \
- for (i = 0; i <= DXG_INDEX_DxDdIoctl; i++) \
- { \
- if (gpDxFuncs[i].iFunc == INDEX) \
- { \
- FUNCTION = (VOID *)gpDxFuncs[i].pfn; \
- break; \
- } \
- }
-
/* Gammaramp internal prototype */
BOOL FASTCALL IntGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp);
BOOL FASTCALL IntSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL);
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dvp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dvp.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dvp.c [iso-8859-1] Mon May 5 14:42:23
2008
@@ -1,4 +1,3 @@
-
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -187,10 +186,7 @@
NtGdiDvpGetVideoPortLine(HANDLE hVideoPort,
PDD_GETVPORTLINEDATA puGetVPortLineData)
{
- PGD_DXDVPGETVIDEOPORTLINE pfnDvpGetVideoPortLine = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpGetVideoPortLine, pfnDvpGetVideoPortLine);
+ PGD_DXDVPGETVIDEOPORTLINE pfnDvpGetVideoPortLine =
(PGD_DXDVPGETVIDEOPORTLINE)gpDxFuncs[DXG_INDEX_DxDvpGetVideoPortLine].pfn;
if (pfnDvpGetVideoPortLine == NULL)
{
@@ -211,10 +207,7 @@
NtGdiDvpGetVideoPortOutputFormats(HANDLE hVideoPort,
PDD_GETVPORTOUTPUTFORMATDATA
puGetVPortOutputFormatData)
{
- PGD_DXDVPGETVIDEOPORTOUTPUTFORMATS pfnDvpGetVideoPortOutputFormats = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpGetVideoPortOutputFormats,
puGetVPortOutputFormatData);
+ PGD_DXDVPGETVIDEOPORTOUTPUTFORMATS pfnDvpGetVideoPortOutputFormats =
(PGD_DXDVPGETVIDEOPORTOUTPUTFORMATS)gpDxFuncs[DXG_INDEX_DxDvpGetVideoPortOutputFormats].pfn;
if (pfnDvpGetVideoPortOutputFormats == NULL)
{
@@ -236,10 +229,7 @@
NtGdiDvpGetVideoPortConnectInfo(HANDLE hDirectDraw,
PDD_GETVPORTCONNECTDATA puGetVPortConnectData)
{
- PGD_DXDVPGETVIDEOPORTCONNECTINFO pfnDvpGetVideoPortConnectInfo = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpGetVideoPortConnectInfo,
pfnDvpGetVideoPortConnectInfo);
+ PGD_DXDVPGETVIDEOPORTCONNECTINFO pfnDvpGetVideoPortConnectInfo =
(PGD_DXDVPGETVIDEOPORTCONNECTINFO)gpDxFuncs[DXG_INDEX_DxDvpGetVideoPortConnectInfo].pfn;
if (pfnDvpGetVideoPortConnectInfo == NULL)
{
@@ -260,10 +250,7 @@
NtGdiDvpGetVideoSignalStatus(HANDLE hVideoPort,
PDD_GETVPORTSIGNALDATA puGetVPortSignalData)
{
- PGD_DXDVPGETVIDEOSIGNALSTATUS pfnDvpGetVideoSignalStatus = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpGetVideoSignalStatus,
pfnDvpGetVideoSignalStatus);
+ PGD_DXDVPGETVIDEOSIGNALSTATUS pfnDvpGetVideoSignalStatus =
(PGD_DXDVPGETVIDEOSIGNALSTATUS)gpDxFuncs[DXG_INDEX_DxDvpGetVideoSignalStatus].pfn;
if (pfnDvpGetVideoSignalStatus == NULL)
{
@@ -287,10 +274,7 @@
HANDLE* phSurfaceVbi,
PDD_UPDATEVPORTDATA puUpdateVPortData)
{
- PGD_DXDVPUPDATEVIDEOPORT pfnDvpUpdateVideoPort = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpUpdateVideoPort, pfnDvpUpdateVideoPort);
+ PGD_DXDVPUPDATEVIDEOPORT pfnDvpUpdateVideoPort =
(PGD_DXDVPUPDATEVIDEOPORT)gpDxFuncs[DXG_INDEX_DxDvpUpdateVideoPort].pfn;
if (pfnDvpUpdateVideoPort == NULL)
{
@@ -312,10 +296,7 @@
NtGdiDvpWaitForVideoPortSync(HANDLE hVideoPort,
PDD_WAITFORVPORTSYNCDATA puWaitForVPortSyncData)
{
- PGD_DXDVPWAITFORVIDEOPORTSYNC pfnDvpWaitForVideoPortSync = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpWaitForVideoPortSync,
pfnDvpWaitForVideoPortSync);
+ PGD_DXDVPWAITFORVIDEOPORTSYNC pfnDvpWaitForVideoPortSync =
(PGD_DXDVPWAITFORVIDEOPORTSYNC)gpDxFuncs[DXG_INDEX_DxDvpWaitForVideoPortSync].pfn;
if (pfnDvpWaitForVideoPortSync == NULL)
{
@@ -337,10 +318,7 @@
HANDLE* hEvent,
LPDDVIDEOPORTNOTIFY pNotify)
{
- PGD_DXDVPACQUIRENOTIFICATION pfnDvpAcquireNotification = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpAcquireNotification,
pfnDvpAcquireNotification);
+ PGD_DXDVPACQUIRENOTIFICATION pfnDvpAcquireNotification =
(PGD_DXDVPACQUIRENOTIFICATION)gpDxFuncs[DXG_INDEX_DxDvpAcquireNotification].pfn;
if (pfnDvpAcquireNotification == NULL)
{
@@ -361,10 +339,7 @@
NtGdiDvpReleaseNotification(HANDLE hVideoPort,
HANDLE hEvent)
{
- PGD_DXDVPRELEASENOTIFICATION pfnDvpReleaseNotification = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpReleaseNotification,
pfnDvpReleaseNotification);
+ PGD_DXDVPRELEASENOTIFICATION pfnDvpReleaseNotification =
(PGD_DXDVPRELEASENOTIFICATION)gpDxFuncs[DXG_INDEX_DxDvpReleaseNotification].pfn;
if (pfnDvpReleaseNotification == NULL)
{
@@ -386,10 +361,7 @@
NtGdiDvpGetVideoPortField(HANDLE hVideoPort,
PDD_GETVPORTFIELDDATA puGetVPortFieldData)
{
- PGD_DXDVPGETVIDEOPORTFIELD pfnDvpGetVideoPortField = NULL;
- INT i;
-
- DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpGetVideoPortField, pfnDvpGetVideoPortField);
+ PGD_DXDVPGETVIDEOPORTFIELD pfnDvpGetVideoPortField =
(PGD_DXDVPGETVIDEOPORTFIELD)gpDxFuncs[DXG_INDEX_DxDvpGetVideoPortField].pfn;
if (pfnDvpGetVideoPortField == NULL)
{
@@ -401,4 +373,3 @@
return pfnDvpGetVideoPortField(hVideoPort, puGetVPortFieldData);
}
-