RE: [AD] Summary : DirectX Windowed Mode

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Here's is the diff for the windowed mode. The patch is for the original all3928,
and it includes Keith's overlay patch.

A brief description:

- It creates a window of the size passed to set_gfx_mode (number of driver:
GFX_DIRECTX_WIN). It also creates an offscreen backbuffer (pointed by screen),
and creates a thread that blits the contents of the buffer to the window, synced
with the vertival refresh.

- The mode must be initialized with the same color depth as the desktop, or it
will fail.

- The window can be moved or overlapped with other windows without losing its
content. You can also resize the window.

- Known bugs (will be fixed in few days :)
   Palette mode (8 bit) don't show the correct colors.
   If you minimize the window and restore it, it won't work until you move the
window.
   If you move the window outside the desktop on the left side or at top
(difficult!), the DX Blt call fails and the window won't refresh.
   I think it's all, please try it and notify any bug.

Attachment: window.zip
Description: Zip compressed data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/