Re: [AD] fixes for some al_resize_display cases in Windows

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


New patch is attached (also fixes OpenGL bitmap preservation between 
fullscreen mode changes now:
https://sourceforge.net/tracker/?func=detail&aid=3543463&group_id=5665&atid=105665 ).

Patch notes:
* fixed missing/incorrect resize events under Windows   in
 Direct3D and OpenGL displays (could be seen in
 ex_display_events)

* fixed a case where changing fullscreen mode in D3D via al_resize_display
  caused a crash and loss of loaded bitmaps information causing
  the bitmap not to be converted and thus disappearing after mode change
  (problem could be observed running ex_fs_resize)

* fixed a case where changing fullscreen mode in OpenGL(Windows) via
  al_resize_display cause nothing at all to be rendered after the mode change

* fixed OpenGL(Windows) bitmap preservation between fullscreen mode changes
  (problem could be observed running ex_fs_resize with an OpenGL display)
  (major credits to Elias who helped debugging this through screenshots
   of debugger states and by providing tons of knowledge)

Dennis Busch
d_busch@xxxxxxxxxx

On 12 Jul 2012 at 20:01, Dennis-Busch@xxxxxxxxxx wrote:
> Patch is attached. Might need some more testing.
> I only tested it with the various resize examples in both D3D and
> OpenGL displays (Windows 7, single monitor setup).
> 
> I could not manage to fix the lost bitmaps problem in OpenGL yet.
> 
> Patch notes:
> * fixed missing/incorrect resize events under Windows in
>  Direct3D and OpenGL displays (could be seen in
>  ex_display_events) (this also seems to fix wrong window
>  content positioning in OpenGL after resize)
> 
> * fixed a case where changing fullscreen mode in D3D via al_resize_display
>   caused a crash and loss of loaded bitmaps information causing
>   the bitmap not to be converted and thus disappearing after mode change
>   (problem could be observed running ex_fs_resize)
> 
> * fixed a case where changing fullscreen mode in OpenGL(Windows) via
>   al_resize_display cause nothing at all to be rendered after the mode change
>   (problem could be observed running ex_fs_resize with an OpenGL display)
>   (there is still the problem that bitmaps don't get converted correctly
>    -> they seem to end up as fully transparent filled black rectangles
>       and so are invisible after the mode change)
> 
> Dennis Busch
> d_busch@xxxxxxxxxx


The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  0001-fixed-missing-incorrect-resize-events-under-Windows.patch
     Date:  13 Jul 2012, 23:18
     Size:  5889 bytes.
     Type:  Unknown

Attachment: 0001-fixed-missing-incorrect-resize-events-under-Windows.patch
Description: Binary data



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