www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/21/13:43:09

From: zhang AT cc DOT hirosaki-u DOT ac DOT jp (Zhang Shu Huai)
Newsgroups: comp.os.msdos.djgpp
Subject: why can't printf text in graphics mode
Date: 20 Dec 1996 17:46:02 +0900
Organization: Faculty of Agriculture, Hirosaki Univ., Japan
Lines: 31
Sender: zhang AT owani8 DOT cc DOT hirosaki-u DOT ac DOT jp
Message-ID: <59djoa$3al@owani8.cc.hirosaki-u.ac.jp>
NNTP-Posting-Host: owani8.cc.hirosaki-u.ac.jp
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

  Now I want to printf text in the graphics mode, but it does not work, why?
The graphics mode setting is below:
 set GRX20DRV=vesa gw 1024 gh 768 nc 256

 and 
	GrSetMode(GR_default_graphics);
	for (i=0;i<GrMaxX();i++)
		for (j=0;j<GrMaxY();j++)
		{
			GrLine(i,0,i,GrMaxY(),color);
			gotoxy(0,0);
			printf("i=%d j=%d\n",i,j);
			getch();
		}

 In this program, printf works after Grline, but does not work same time.
please give some help.

thanks.


	
 
*************************************************
*	   $BD%!!<y\G(B(ZHANG shu-huai)     	*
*  e-mail :  zhang AT cc DOT hirosaki-u DOT ac DOT jp		*
*  TEL    :  0172-36-2111(ext.4741)		*
*  FAX    :  0172-35-9000			*
*      $B90A0Bg3XG AT 3XItG@6H%7%9%F%`9)3X2J!!(B	*
*************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019