On Mon, May 15, 2000 at 07:30:25AM +0200, Ove Kaaven wrote:
> 
> On 14 May 2000, Alexandre Julliard wrote:
> 
> > Ove Kaaven <[EMAIL PROTECTED]> writes:
> > 
> > > This patch lets the x11drv windowing driver be sort of workable on top of
> > > a memory DC.
> > 
> > Why do you need that?
> 
> It is a foundation for some semi-hackish stuff to get Battle.net going.
> Its interactive screen uses CreateWindow to create buttons and edit
> controls, and its paint routine (WM_PAINT handler) goes something like
> this:
> 
> -IDirectDrawSurface::Lock(primary)
> -draw the button's fancy background
> -IDirectDrawSurface::Unlock
> -USER32.GetDC(hwnd)
> -draw the button's text (with TextOut)
> -USER32.ReleaseDC
Oh damn ! How familiar this sounds to me...
This weekend I tested Deadlock2, which does exactly the same, which
results in a blackout of the game screen as soon as the desktop gets entered
by the mouse pointer.

> Not pretty, but X is too different from a Windows display driver to have
> much of a choice.
I think I can safely believe that ;)

Andreas Mohr

Reply via email to