Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!apple!bionet!ucselx!petunia!news From: sslee@polyslo.CalPoly.EDU (Steven Lee) Newsgroups: comp.sys.atari.st Subject: switching res Message-ID: <27859cda.6547@petunia.CalPoly.EDU> Date: 5 Jan 91 09:31:06 GMT Reply-To: sslee@polyslo.CalPoly.EDU (Steven Lee) Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407 Lines: 29 Does anyone know of a legal or illegal way to switch resolution without going through the desktop? This would be convenient to write low res programs while running in medium res (such as using Laser C). I have TOS 1.0 but I suppose I could check the TOS version and use differenct methods if necessary. The only thing that remotely comes close to what I wanted was in a program called AVS.PRG (Audio-Visual Player by Jim Kent, released by STart). For example, if you were in medium res and wanted to be in low res... char *ainit=(char *)a_init; /* Line A call, $A000 */ Setscreen(-1L,-1L,0); *((int *)(aline-692))=319; /* Mouse X limit */ *((int *)(aline-690))=199; /* Mouse Y limit */ *((int *)(aline-666))=16; /* # of bitplanes */ Apparently, that works in setting the boundaries for moving the mouse cursor. It also shows the correct colors. Unfortunately, it does not center dialog boxes correctly, does not clear the area under the drop-down menus, and some VDI functions (such as drawing ellipses) do not work as expected. I know using Line A is not recommended in the TTs but this is for my own personal use. Steven Lee