delorie.com/archives/browse.cgi | search |
From: | "Damian Yerrick" <web DOT poison AT pineight DOT 8m DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: avoid video reset |
Date: | Sun, 10 Oct 1999 17:55:46 -0500 |
Organization: | Rose-Hulman Institute of Technology |
Lines: | 20 |
Message-ID: | <7tr5lb$p0k$1@solomon.cs.rose-hulman.edu> |
References: | <3801891B DOT 3B50 AT TU-Berlin DOT DE> |
NNTP-Posting-Host: | yerricde.laptop.rose-hulman.edu |
X-Trace: | solomon.cs.rose-hulman.edu 939596267 25620 137.112.205.146 (10 Oct 1999 22:57:47 GMT) |
X-Complaints-To: | news AT cs DOT rose-hulman DOT edu |
NNTP-Posting-Date: | 10 Oct 1999 22:57:47 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MIMEOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Klaus Reinhardt <K DOT Rdt AT TU-Berlin DOT DE> wrote in message news:3801891B DOT 3B50 AT TU-Berlin DOT DE... > ----------------- mailto:K DOT Rdt AT TU-Berlin DOT DE start ------------------- > Hello! > > I want to set a vid-mode with an allegro-prog: > set_gfx_mode(GFX_MODEX, 320, 400, 0, 0); > But after running (return or exit) the normal vid-mode (03) > is restored. How can I avoid this? That's Allegro's normal behavior. It restores the last used video mode on exit because DOS knows nothing about any Mode X variant, such as the Mode Z you are setting with your example above. Just do your work before you exit, and everything will be fine. There is an article above ("Re: bitmap question") that demonstrates how to draw a bitmap to Mode Z.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |