| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | vm_mkcolor() |
G'Day Andrew,
I have a bit of a problem with that function..
It doesn't work.
vm_mkcolor(1,10); will give me a blinking cyan foreground on lightgreen.
here is a lil test...
#include
#define vm_mkcolor(fore,back) ((fore) | (back << 4))
#define Set_Attrib(fore,back) (((back << 4) + fore) & 127)
int main()
{
printf("\n %d",vm_mkcolor(1,10));
printf("\n %d",Set_Attrib(1,10));
return 0;
}
Output will be 161 i
33 !
Since 128 is blink...so when is VidMgr13 coming out ? :-)
I'm surprised nobody whinged about this yet.
L8r Frank (fadam{at}ozemail.com.au).
___ Blue Wave/DOS v2.21
--- Maximus 3.01
* Origin: The Software Parlour (3:635/544)SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 711/401 409 410 413 SEEN-BY: 711/430 808 809 932 934 712/515 713/888 714/906 800/1 @PATH: 635/544 50/99 711/808 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™.