delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/02/03:20:48

Xref: news-dnh.mv.net comp.os.msdos.djgpp:2990
Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!oleane!in2p3.fr!swidir.switch.ch!scsing.switch.ch!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!lrz-muenchen.de!ipp-garching.mpg.de!ipp-garching
From: asc AT ipp-garching DOT mpg DOT de (asc)
Newsgroups: comp.os.msdos.djgpp
Subject: GRX20 doesn´t work, although 1.03m1 worked
Date: Wed, 01 Nov 1995 20:06:20 GMT
Organization: Rechenzentrum der Max-Planck-Gesellschaft in Garching
Lines: 36
Reply-To: asc AT ipp-garching DOT mpg DOT de (asc)
Nntp-Posting-Host: slip154.ipp-garching.mpg.de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Hi there.

I´ve been using LIBGRX 1.03m1 for developing a really stupid and simple application
that works on my 586 with s3 trio64 graphics card.
When switching to DJGPP v2.0b3 with LIBGRX2.0 and adapting the incompatible parts of
the program (changing GrTextOption->txo_bgcolor to GrTextOption->txo_bgcolor.v, 
kicking out font magnification) it compiled.
It runs (using 640x480x256, RGB-Color-Mode), but produces two errors:
 1. Mouse cursor is most red with some random Pixels in the lower right.
    Code fragment:
        if (!MouseDetect()) return 3;
        MouseEventMode(1);
        MouseInit();
        MouseSetSpeed(1);
        MouseWarp(10,10);
        MouseDisplayCursor();
 2. In text output containing periods '.' those are not written and the length is interpreted
     wrong
     Code Fragment:
        static GrFont *font;          
        static GrTextOption *textset;
      [snip]
        textset=(GrTextOption *) calloc(sizeof(textset));
        font=GrLoadFont(cour14b.fnt);
        textset->txo_font = font;
        textset->txo_bgcolor.v = WHITE;
        textset->txo_fgcolor.v = BLUE;
      [snip]
       GrDrawString("0.1", 4, 8,133, textset);
       GrDrawString("0",    1, 8,233, textset);
      [end of code]
 
I´ve no clue what´s the cause of this, so: please help (preferably E-Mail)
Yes, I know it´s beta software, so maybe look at this as a bug report.
                   
                                                                                                    Thanks in advance

- Raw text -


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