| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Can`t set VIO palette |
JDBP>RB>
JDBP> > void VGASetAllPalette(char *palette, int size) {
JDBP> > VIOCOLORREG viocreg;
JDBP> >
JDBP> > memcpy(&viocreg.colorregaddr, palette, 4);
JDBP> > };
JDBP>RB>
JDBP> Are you sure that you don't mean to copy the pointer itself ?
JDBP> memcpy(&viocreg.colorregaddr, &palette, sizeof(palette));
Whoops. I changed this to a straight assignment, and checked the .H
file (which was right) then checked the assembly output (BCC -3 -S
OS2GRAPH.CPP) and it does appear to fiddle the pointer, but I don't
understand thunking so I can't say if it is done correctly. In any
case, it still doesn't set the colors right.
Rob.
___
X SLMR 2.1a X Windws is ine for bckgroun comunicaions
--- 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™.