[Bug 12191] X11DRV_ChoosePixelFormat fails (Wing Commander: Secret Ops)

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Mar 24 09:34:38 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=12191





--- Comment #5 from BlackStar <BurnSpamAddress at gmail.com>  2008-03-24 09:34:37 ---
I'm trying to understand the interface. Is it something like the following?
- Program calls DirectDrawCreate
- Wine calls WineDirect3DCreate (in wined3d.c)
- ChoosePixelFormat is called (gdi32.c?)
- X11DRV_ChoosePixelFormat is called (winex11.drv/??.c)

I guess I fail to see how wglChoosePixelFormat comes into play (it's not
visible in the stacktraces above).

I'm also a little confused on wgl- and gdi- ChoosePixelFormat. It looks like
there are three ChoosePixelFormat functions: undercorated, wgl and gdi
(internal), but it isn't entirely clear which one calls what (see also:
http://bugs.winehq.org/show_bug.cgi?id=5310)

My guess is ChoosePixelFormat calls wglChoosePixelFormat / gdiChoosePixelFormat
internally (according to MSDN it is recommended that you call the undecorated
function, unless you dynamically load opengl32.dll).

Are you certain that wgl (opengl.c) comes into play here? I'll try to take a
look, but my job does not allow much free time unfortunately.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list