From 251ed43b985fb522011e7066f8bc58c6d4e0fd37 Mon Sep 17 00:00:00 2001 From: Lionel Ulmer Date: Sun, 18 Apr 1999 12:03:02 +0000 Subject: [PATCH] Changed 'GetDisplayMode' to return the mode previously set by 'SetDisplayMode' (and not the current monitor mode). --- graphics/ddraw.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/graphics/ddraw.c b/graphics/ddraw.c index 8fc167a67b8..1450a3af05e 100644 --- a/graphics/ddraw.c +++ b/graphics/ddraw.c @@ -3970,8 +3970,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_GetDisplayMode( ICOM_THIS(IDirectDraw2Impl,iface); TRACE(ddraw,"(%p)->(%p)\n",This,lpddsfd); lpddsfd->dwFlags = DDSD_HEIGHT|DDSD_WIDTH|DDSD_PITCH|DDSD_BACKBUFFERCOUNT|DDSD_PIXELFORMAT|DDSD_CAPS; - lpddsfd->dwHeight = MONITOR_GetHeight(&MONITOR_PrimaryMonitor); - lpddsfd->dwWidth = MONITOR_GetWidth(&MONITOR_PrimaryMonitor); + lpddsfd->dwHeight = This->d.height; + lpddsfd->dwWidth = This->d.width; lpddsfd->lPitch = This->e.dga.fb_width*This->d.directdraw_pixelformat.x.dwRGBBitCount/8; lpddsfd->dwBackBufferCount = 1; lpddsfd->x.dwRefreshRate = 60; @@ -3989,8 +3989,8 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetDisplayMode( ICOM_THIS(IDirectDraw2Impl,iface); TRACE(ddraw,"(%p)->GetDisplayMode(%p)\n",This,lpddsfd); lpddsfd->dwFlags = DDSD_HEIGHT|DDSD_WIDTH|DDSD_PITCH|DDSD_BACKBUFFERCOUNT|DDSD_PIXELFORMAT|DDSD_CAPS; - lpddsfd->dwHeight = MONITOR_GetHeight(&MONITOR_PrimaryMonitor); - lpddsfd->dwWidth = MONITOR_GetWidth(&MONITOR_PrimaryMonitor); + lpddsfd->dwHeight = This->d.height; + lpddsfd->dwWidth = This->d.width; lpddsfd->lPitch = lpddsfd->dwWidth * This->d.directdraw_pixelformat.x.dwRGBBitCount/8; lpddsfd->dwBackBufferCount = 1; lpddsfd->x.dwRefreshRate = 60;