2009/8/12 Andrew Eikum aeikum@codeweavers.com:
- GpStatus stat = Ok;
The initialization is redundant, since you always initialize stat before using it.
- if((stat = GdipCreateRegionRect(&wnd_rectf, &wnd_rgn) != Ok))
return stat;
I don't think that does what you want it to do.
Henri Verbeet wrote:
2009/8/12 Andrew Eikum aeikum@codeweavers.com:
- GpStatus stat = Ok;
The initialization is redundant, since you always initialize stat before using it.
- if((stat = GdipCreateRegionRect(&wnd_rectf, &wnd_rgn) != Ok))
return stat;
I don't think that does what you want it to do.
Thanks for the reply. Does this sit better with you?
- /* get window bounds */
- if(!GetClientRect(graphics->hwnd, &wnd_rect))
return GenericError;
What if the Graphics object doesn't have a window?