wined3d: Allow SetCursorProperties on existing cursor

H. Verbeet hverbeet at gmail.com
Sun Mar 11 18:09:46 CDT 2007


On 11/03/07, Erich Hoover <ehoover at mines.edu> wrote:
> Is the attached what you mean?
>
> Erich Hoover
> ehoover at mines.edu
>

>+        if (IWineD3DSurface_LockRect(pCursorBitmap, &rect, NULL,
WINED3DLOCK_READONLY) == WINED3D_OK)
I know the current code doesn't do it everywhere either, but you
should probably be using SUCCEEDED() there.

>+            void *mem = rect.pBits;
...
>+            glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height,
0, format, type, mem);
That may work, but it's not guaranteed to, see
http://msdn2.microsoft.com/en-us/library/bb206357.aspx



More information about the wine-devel mailing list