From: <xav...@ho...> - 2000-12-07 06:06:12
|
Hello everybody, I have noticed a extrange maybe? thing... this is, when using DIRECT_X and AMNESIA it says its supported... ok when using DIRECT_X and PAUSE it says its unsupported... ok too now when using DIRECTX_WIN and AMENSIA it says its supported BUT the program still runs even without the focus AND when using DIRECTX_WIN and PAUSE it says its SUPPORTED and now the program doesnt run when not focused is all this normal? thanks! >From <all...@ca...> Thu Dec 07 04:15:59 2000 Received: from mail.libertysurf.net [213.36.80.91] by canvaslink.com with ESMTP (SMTPD32-6.00) id A54D83D50132; Thu, 07 Dec 2000 04:15:57 -0500 Received: from libertysurf.fr (213.36.65.104) by mail.libertysurf.net (5.1.053) id 3A2E17990001DA0B for al...@ca...; Thu, 7 Dec 2000 10:15:11 +0100 X-Sender: eric Message-ID: <3A2...@li...> Date: Thu, 07 Dec 2000 10:13:12 +0100 From: Eric Botcazou <ebo...@li...> X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13-7mdk i586) X-Accept-Language: fr, en MIME-Version: 1.0 To: al...@ca... References: <OE6...@ho...> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [AL] extrange thing noticed on Allegro Windows (3.9.33) Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 276558450 Status: O Content-Length: 1113 Lines: 26 Javier González wrote: > > Hello everybody, > when using DIRECTX_WIN and AMENSIA it says its supported BUT > the program still runs even without the focus > AND when using DIRECTX_WIN and PAUSE it says its SUPPORTED and > now the program doesnt run when not focused > > is all this normal? Yes, the switching mode policy isn't the same in fullscreen mode as in windowed mode: - in fullscreen mode: only SWITCH_AMNESIA and SWITCH_BACKAMNESIA are supported because Allegro isn't able to remember the contents of the video memory. - in windowed mode: only SWITCH_PAUSE and SWITCH_BACKGROUND are supported, this time because Allegro do remember the contents of the screen. But this applies when the color depth of Allegro's screen and the color depth of Windows' desktop match. If they don't, you can't switch your application into the background with the 3.9.33 code; with the new 3.9.34 code, you can *but* then only SWITCH_PAUSE is allowed. Ultimately, you have to check the return value of set_display_switch_mode(). -- Eric Botcazou (ebo...@mu...) Web site: http://www.multimania.com/ebotcazou |