www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000110

When Created: 09/23/1996 08:34:18
Against DJGPP version: 2.00
By whom: peso@diku.dk
Abstract: row,col swap in grx20/text functions
When writing text on a graphics screen, using Grx20, the (col,row) positioning
system doesn't work as described in the header files. It's more like a 
(row,col) positioning. I tried downloading the 960919 alpha image of 
grx20.zip but the error was still there.

Solution added: 09/23/1996 08:38:56
By whom: peso@diku.dk
In file dumptext.c go to about line 59 where you'll find the following code:

	xpos = r->txr_xpos + (row * chrw);
	ypos = r->txr_ypos + (col * chrh);

change it to

	xpos = r->txr_xpos + (col * chrw);
	ypos = r->txr_ypos + (row * chrh);

Note added: 04/20/1999 11:00:59
By whom: broeker@physik.rwth-aachen.de
Not a DJGPP bug, so it doesn't belong here.

Closed on 04/20/1999 11:00:00: Non-DJGPP bug
By whom: broeker@physik.rwth-aachen.de



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