Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!npd.novell.com!excelan!colin From: colin@la.excelan.com (Colin Goldstein) Newsgroups: comp.os.os2.programmer Subject: Using VioSetMode Message-ID: <2593@excelan.COM> Date: 10 Jan 91 00:51:35 GMT Sender: news@excelan.COM Reply-To: colin@la.excelan.com (Colin Goldstein) Distribution: comp.os.os2.programmer comp.os.os2.misc Organization: Excelan, Inc., San Jose, Califonia Lines: 43 I have a question about using VioSetMode. I find that it only works some times. If I have the display in 80*50 mode and use VioSetMode to change it to 80*25, it works. However, if I'm in other modes such as 80*34 it does not work at all. And if I'm in 80*12 or 80*43, it only partially works. Although the screen changes to the correct number of lines, the font is not the default font. I have enclosed the code I'm using to test this. Any help would be appreciated. Colin ------------ CODE ------------------ CODE -------------------------- #define INCL_BASE #define INCL_NOPM #include main() { VIOMODEINFO viomi; BYTE bCell[2]; bCell[0] = 0x20; /* space character */ bCell[1] = 0x07; /* white attribute (EGA) */ // VioScrollDn(0, 0, 0xFFFF, 0xFFFF, 0xFFFF, bCell, 0); // VioSetCurPos(0, 0, 0); viomi.cb = sizeof(viomi); VioGetMode(&viomi, 0); viomi.row = 25; viomi.col = 80; VioSetMode(&viomi, 0); } ------------- CODE ----------------------- CODE ---------------------- /-------------------------------------------------------------------\ | The views expressed here are my own. | Norm, what are you | | They do not necessarily represent | up too??? | | the views expressed by my employer. | | | ---------------| My ideal weight if I | | colin@novell.com | Novell Inc., | were 11 feet tall. | | uunet!novell!colin | San Jose | - Cheers | \-------------------------------------------------------------------/