I'm trying to create a shadowed window effect in dos, but it is not coming out right....here is what I have so far...
#include <stdio.h>
#include <conio.h>
void main()
{
textmode(3); textattr(15 + (8<<4)); clrscr();
window(16,6,66,21);
textattr(15 + (0<<4));
clrscr();
window(15,5,65,20);
textmode(3); textattr(15 + (1<<4));
clrscr();
while(!kbhit());
}
As you can see...the first command sets the entire background to a dark gray color. Then it creates a window and sets it's background to black. It works till there. After that it creates a new window and the background is supposed to be blue but it is coming up black. Does anyone know what I did wrong????



LinkBack URL
About LinkBacks



