www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/18/09:21:47

From: eds AT gravi DOT physik DOT uni-jena DOT de (E. Schmidt)
Newsgroups: comp.os.msdos.djgpp
Subject: ?: GRX22, only 2 colors after GrSetMode(..default..)
Date: 17 Feb 1998 21:26:57 GMT
Organization: Friedrich-Schiller-University Jena, Germany
Lines: 32
Message-ID: <6ccvb1$ook$1@fsuj19.rz.uni-jena.de>
NNTP-Posting-Host: hpxs2.tpi.uni-jena.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hallo, World!

Sometimes my simulation program sets monochrom mode after

  GrSetMode(Gr_default_graphics);

The probability of this increases with larger memory allocation
(Statement: You will never have enough memory...)

But sometimes it's Ok -> 640x480x16 colors.

Usage of GR_biggest_graphics 
or Gr_width_height_color_graphics
does not help

Where should I look for solution?

I work under Win95, 133MHz, 32 RAM,...~100Mb free..
mem returns 599Kb free, the size of exe file is 420kB

Maybe I make InitGraph in a wrong way.
A good example could solve all problems I think.
(I have used a piece from ...../grx22/test/test.h)

By the way, I make text output in graph mode by means of printf()
Is it Ok?


Thanks

Eduard

- Raw text -


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