Mail Archives: djgpp/1996/05/29/03:56:19
Dear Ladies and Gentlemen,
I have a problem with using cprintf in the lower half of the screen in text
80/50 mode.
When I try to print something colored in this area, the upper lines are scrolled
up, although I didn't reach the bottom of the screen and the printed lines are
distorted.
This short program should reproduce my problem:
#include <stdio.h>
#include <conio.h>
#include <grx20.h>
void main(void)
{
GrSetMode(GR_width_height_text,80,50);
gotoxy(1,1);
textcolor(GREEN);
cprintf("Line 1");
gotoxy(1,48);
textcolor(RED);
cprintf("This is Line 48!");
getch();
GrSetMode(GR_default_text);
}
I hope, you can help me.
Thank you!
Mathias Koch
- Raw text -