Re: DirectDrawRenderer - opengl non power of 2 windows

2007-03-31 Thread Nathan Williams
st fire up windows, and brush up on my direct draw code to make a test app? =D On 3/31/07, Stefan Dösinger <[EMAIL PROTECTED]> wrote: Am Samstag 31 März 2007 11:56 schrieb Nathan Williams: > > This->Flags |= SFLAG_NONPOW2 This also isn't correct in that case :-) This will set th

DirectDrawRenderer - opengl non power of 2 windows

2007-03-31 Thread Nathan Williams
Flags |= SFLAG_NONPOW2 -- Nathan -- Nathan From 72a209c869b2ec91af771df6907dbe0638a33c04 Mon Sep 17 00:00:00 2001 From: Nathan Williams <[EMAIL PROTECTED]> Date: Sat, 31 Mar 2007 19:39:35 +1000 Subject: OpenGL ddraw renderer pow2 fix --- dlls/wined3d/surface.c |4 ++-- 1 files cha

Re: DirectDrawRenderer - opengl non power of 2 windows

2007-03-31 Thread Nathan Williams
Actually I needed to set that flag, otherwise other code further on fails, using the incorrect height. And now that I look at it, all my bitwise operator knowledge is coming back from university, that should have been a bitwise or! so: This->Flags |= SFLAG_NONPOW2; I'll fix it and resend an upda

Re: DirectDrawRenderer - opengl non power of 2 windows

2007-03-30 Thread Nathan Williams
dirty rectangle instead of the whole surface. -- Nathan From 0842a21fd3a43643af3c7ff543804ad2823a91d4 Mon Sep 17 00:00:00 2001 From: Nathan Williams <[EMAIL PROTECTED]> Date: Sat, 31 Mar 2007 10:05:39 +1000 Subject: Fixing power of 2 assumptions in the OpenGL ddraw renderer --- dlls/wined3d/s

Fwd: DirectDrawRenderer - opengl non power of 2 windows

2007-03-24 Thread Nathan Williams
Oh sorry, my misunderstanding! It is called from: flush_to_framebuffer_drawpixels http://source.winehq.org/git/wine.git/?a=blob;f=dlls/wined3d/surface.c;hb=HEAD#l956 On 3/25/07, Stefan Dösinger <[EMAIL PROTECTED]> wrote: Am Samstag 24 März 2007 23:59 schrieb Nathan Williams: > It c

Re: DirectDrawRenderer - opengl non power of 2 windows

2007-03-24 Thread Nathan Williams
It crashes at: dlls/wined3d/surface.c d3dfmt_convert_surface: 1593 *dest++ = table[color][0]; http://source.winehq.org/git/wine.git/?a=blob;f=dlls/wined3d/surface.c;hb=HEAD#l1593 If I hack that loop to be the right height, it works without complaint. The original setting of

Re: DirectDrawRenderer - opengl non power of 2 windows

2007-03-24 Thread Nathan Williams
Should I go ahead and remove the same from dlls/wined3d/surface.c and submit a patch, or have you beaten me to it? =D On 3/25/07, Stefan Dösinger <[EMAIL PROTECTED]> wrote: Sounds like that the surface conversion code still makes some assumptions about the allocated memory size and the surface s

DirectDrawRenderer - opengl non power of 2 windows

2007-03-17 Thread Nathan Williams
I'm working on fixing the menus in carmageddon and I have a question. I have set the DirectDrawRenderer to opengl and it all crashes (where it works under gdi, just displays incorrectly). Now I traced the problem down to: dlls/wined3d/surface.c d3dfmt_convert_surface The loop at: http://source.

Re: Work legalities

2007-03-09 Thread Nathan Williams
I asked today and was told there shouldn't be a problem and my boss is going to check it over for me with the powers that be. In the meantime I think I'll just start coding and not submit anything until I eventually get it in writing. On 3/9/07, Shachar Shemesh <[EMAIL PROTECTED]> wrote: Jeremy

Re: Work legalities

2007-03-07 Thread Nathan Williams
Yeah, this was the way I was leaning. Thanks to all the replies, I'm actually in Australia, whilst I love this job and don't believe there would be a problem (this company is pretty laid back / not microsoft), but I did sign a contract and think there may be an issue with one of the sections. Whe

Work legalities

2007-03-07 Thread Nathan Williams
Hey everyone, I have been planning to do some work on wine for a while now, but after I started working I got myself a new programming job. I'm worried about the copyright of any external work I do, so I need a little advice. What do I need from my employer to clear me to work on wine? Is someth

Re: Direct Draw "palette_convert"

2007-02-15 Thread Nathan Williams
Google to the rescue! (I googled Roderick's name, i was lead right to the patches!) http://www.kernel-traffic.org/wine/wn20051211_301.html#2 I believe this is the patch he was talking about, I'll give it a try in the morning & see how it goes. On 2/15/07, Stefan Dösinger <[EMAIL PROTECTED]> wro

Direct Draw "palette_convert"

2007-02-14 Thread Nathan Williams
I'm working on some direct draw code to get Carmageddon working. I think I have found my issue in IWineD3DPaletteImpl_SetEntries Carmageddon runs in 8 bit mode, my x windows is set at 24bit. If I drop xorg to 8bit, wine refuses to load. If i set it to 16bit, the Carmageddon menus are still bad,

Re: Starting work on wine (Direct X Help)

2007-02-13 Thread Nathan Williams
Oh, my apologies, i thought i had the terminology down pat, but i guess not! I added a comment correcting myself on the appdb. On the actual code, i think the bug lies somewhere in: IWineD3DPaletteImpl_SetEntries During the menus this is called repeatedly. Which looking at the source (wined3d/p

Re: Starting work on wine (Direct X Help)

2007-02-12 Thread Nathan Williams
me looking into the GetDC calls now. Thank you! On 2/13/07, Stefan Dösinger <[EMAIL PROTECTED]> wrote: Am Dienstag 13 Februar 2007 02:43 schrieb Nathan Williams: > I want to get my hands dirty in the wine source code but I need a > little guidance, hopefully from someone working o

Starting work on wine (Direct X Help)

2007-02-12 Thread Nathan Williams
I want to get my hands dirty in the wine source code but I need a little guidance, hopefully from someone working on the DirectX sections of wine. I've decided I want to get Carmageddon working properly. I have already added it to the appdb (http://appdb.winehq.org/appview.php?iVersionId=6993) fo