[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: wined3d: Make WARN about oversized texture output surface and
From:       Vincent Pelletier <plr.vincent () gmail ! com>
Date:       2008-12-28 15:02:42
Message-ID: 200812281602.43581.plr.vincent () gmail ! com
[Download RAW message or body]

Le Sunday 28 December 2008 15:46:46 Henri Verbeet, vous avez écrit :
> pow2Height and pow2Width are unsigned, so you'd want to use %u there.

Done, thanks.
Also, git didn't commit half of the change (I'm too used to subversion 
commiting files in the state they are when changelog is saved...). They are 
in attached patch.

--
Vincent Pelletier

["0001-Make-WARN-about-oversized-texture-output-surface-and.patch" (text/x-diff)]

From d02d16f5469f699a8b36f1104219c0abbd23bc4e Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@kjs.(none)>
Date: Sun, 28 Dec 2008 14:50:09 +0100
Subject: Make WARN about oversized texture output surface and texture size.

---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 67097ac..a306f2c 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3865,7 +3865,7 @@ static HRESULT WINAPI \
IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {  3:    WARN and return \
WINED3DERR_NOTAVAILABLE;  4: Create the surface, but allow it to be used only for \
DirectDraw Blts. Some apps(e.g. Swat 3) create textures with a Height of 16 and a \
                Width > 3000 and blt 16x16 letter areas from them to the render \
                target.
         */
-        WARN("(%p) Creating an oversized surface\n", This);
+        WARN("(%p) Creating an oversized surface: %ux%u (texture is %ux%u)\n", This, \
This->pow2Width, This->pow2Height, This->currentDesc.Width, \
This->currentDesc.Height);  This->Flags |= SFLAG_OVERSIZE;
 
         /* This will be initialized on the first blt */
-- 
1.5.6.5





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic