View previous topic :: View next topic |
Author |
Message |
Chman
Joined: 03 Mar 2007 Posts: 11
|
Posted: Fri Nov 02, 2007 4:33 am Post subject: OpenGL Addon Patch |
|
|
Hi,
I'm a tango user and the OpenGL addon didn't work because of some specifics Phobos calls. So I made this little patch to make it works using standard DFL features (no more phobos/tango related code).
Code: |
22,23d21
< import std.c.stdlib;
<
114c112
< std.c.windows.windows.PIXELFORMATDESCRIPTOR pfd;
---
> dfl.internal.winapi.PIXELFORMATDESCRIPTOR pfd;
134c132
< SetPixelFormat(cast(std.c.windows.windows.HANDLE) _hdc, n, &pfd);
---
> SetPixelFormat(cast(dfl.internal.winapi.HANDLE) _hdc, n, &pfd);
138c136
< ref std.c.windows.windows.PIXELFORMATDESCRIPTOR pfd,
---
> ref dfl.internal.winapi.PIXELFORMATDESCRIPTOR pfd,
|
Tested with last Tango & DFL. Should work with Phobos too. Maybe this will be useful to someone else.
Tom |
|
Back to top |
|
|
baxissimo
Joined: 23 Oct 2006 Posts: 241 Location: Tokyo, Japan
|
Posted: Thu Nov 15, 2007 11:24 pm Post subject: |
|
|
Thanks. Don't use Tango myself, but I'm all for maximum compatibility.
I applied the patch and uploaded a new version to the AddOns page.
(It's a wiki, so you also could have done that yourself if you had felt so inclined). |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|