TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mario Semo
from: Rob Basler
date: 1995-01-16 21:20:56
subject: Can`t set VIO palette

MS> RB> I'm having trouble with a VIO call from BCOS/2 V1.0, I am
MS> RB> trying to set the palette in an OS/2 full screen session in

MS>thats a bug in the bsesub.h file from Borland.
MS>Here are 3 fixes i've made in the file :
MS>typedef struct _VIOFONTINFO {   /* viofi */
MS>        USHORT  cb;
MS>        USHORT  type;
MS>        USHORT  cxCell;
MS>        USHORT  cyCell;
MS>        PVOID16   pbData;                       /* MS             */
MS>        USHORT  cbData;
MS>        } VIOFONTINFO;
MS>typedef VIOFONTINFO FAR16PTR PVIOFONTINFO;
MS>APIRET16  APIENTRY16    VioGetState (PVOID16 pState, HVIO hvio); /* MS */
MS>APIRET16  APIENTRY16    VioSetState (PVOID16 pState, HVIO hvio); /* MS */

Thank you!  My app is now running with sparkling color, just the way it
is supposed to.  Now I can get on with getting the frame rate up...

Rob.
___
 X SLMR 2.1a X hAS ANYONE SEEN MY cAPSLOCK KEY?

--- Maximus/2 2.01wb
* Origin: The Idle Task... (604)275-0835 Richmond BC. (1:153/905)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809
@PATH: 153/905 828 7041 752 716 920 270/101 396/1 3615/50 229/2 12/2442
@PATH: 711/409 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.