www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/22/21:37:46

From: Toby Craig <tobza AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Clueless bloke looking for help
Date: Thu, 21 Jan 1999 19:51:38 +0000
Organization: (Posted via) Netcom Internet Ltd.
Lines: 30
Message-ID: <36A7854A.619B1A22@hotmail.com>
NNTP-Posting-Host: dialup-13-56.netcomuk.co.uk
Mime-Version: 1.0
X-Trace: taliesin.netcom.net.uk 916948316 21409 194.42.231.120 (21 Jan 1999 19:51:56 GMT)
X-Complaints-To: abuse AT corp DOT netcom DOT net DOT uk
NNTP-Posting-Date: 21 Jan 1999 19:51:56 GMT
X-Mailer: Mozilla 4.03 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi there,

I have just started using DJGPP & Allegro, and have run into a problem using
different fonts. Here is a snippet of my code, which returns an error message
somethinmg like 'Incompatible pointer type'

#include <stdio.h>
#include <allegro.h>
#include <stdlib.h>

int main()
{
    FONT *myfont="c:/djgpp/fonts/ncen22.fnt";

    allegro_init();
    install_timer();
    install_mouse();
    install_keyboard();
    set_color_depth(16);
    set_gfx_mode(GFX_VESA2L, 800,600,800,600);
    textout(screen, myfont, "testing testing 123", 0,0, 15);
    show_mouse(screen);
    while(!keypressed());
}

Any tips?

Thanks,

Toby

- Raw text -


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