delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/29/15:28:40

Date: Tue, 29 Mar 1994 22:05:05 +0200
From: Stefan Eckart <S_Eckart AT lis DOT e-technik DOT tu-muenchen DOT de>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: problem in go32/graphics.c

In contrary to version 1.10 it's no longer possible in version 1.11
to set a 15, 16 or 24 bit graphics mode as default via the 'nc' parameter
in the GO32 environment variable, i.e. nc 32768 (15 bit), nc 49168 (16 bit)
and nc 49176 (24 bit) are ignored. This is because gr_def_numcolor in
graphics.c is defined as a 16 bit signed integer and is propagated to the
driver only if it is > 0.

What about changing either gr_def_numcolor to unsigned int or the
'> 0' (line 314 of graphics.c) to '!=0'? The ability to select HiColor or
TrueColor via the environment was a handy feature of version 1.10 which I
currently miss somewhat :-(

Bye,

Stefan.
--
stefan AT lis DOT e-technik DOT tu-muenchen DOT de

- Raw text -


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