|
Resize window smoothly (avoiding flicker or other problems) |
Markobar
Member #16,921
December 2018
|
Hello there! I've been investigating this problem: https://www.allegro.cc/forums/thread/614370 https://www.allegro.cc/forums/thread/616674 https://www.allegro.cc/forums/thread/616732 Making a smooth transition while resizing the window like happens in GDIs looks tricky since the function "al_acknowledge_resize" seems to reinitialise many things and this creates some flicker. I had a silly idea, but I'm not sure how to program it or if it can work: 1) We get the screen resolution with "al_get_monitor_info". Like this, there is no need to reinitialise the display with new dimensions. I appreciate all your comments! |
Edgar Reynaldo
Major Reynaldo
May 2007
|
The only way to do that is with a 'layered' or 'shaped' window the size of the screen. The best way to do that is with OpenGL and to create your own context. But allegro doesn't currently support using a pre-existing context. Your idea is interesting. It could work. I don't know how the performance of running a transparent window for long periods like that might be affected though. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|