Mail Archives: djgpp/1996/12/04/05:57:28
From: | bdarnell AT vnet DOT net (Ben Darnell)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Prob with Allegro RLE sprites / BMP blitting
|
Date: | Tue, 03 Dec 1996 23:34:04 GMT
|
Organization: | Vnet Internet Access, Inc.
|
Lines: | 28
|
Message-ID: | <582ddi$oka@ralph.vnet.net>
|
References: | <580sug$os5 AT antares DOT utu DOT fi>
|
NNTP-Posting-Host: | vts-char5-s28.vnet.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
jupemaho AT utu DOT fi (Juha-Pekka Höglund) was overheard mumbling
incoherently about Prob with Allegro RLE sprites / BMP blitting:
>I've got 36 64x64 bitmaps in a array. They load just fine, but when I
>try to blit them on the screen or make rle-sprites and then draw them
>it crashes. No compilation-time errors. The errormsg was segment
>violation or something like that.. Anyway, I see it's question of
>those near & far pointers. I'm very familiar with pascal ( :) ) and
>nothing like that has ever happened.. please help.
DJGPP doesn't distinguish between near and far pointers (FAQ 17.7).
In pascal, an array of 10 integers is normally declared as
var a:array [1..10] of integer;
a[1] is the first element, and a[10] is the last. In C, you use
int a[10];
a[0] is the first element, and a[9] is the last. If you try to access
a[10], you get a SIGSEGV. If that's not your problem, then post your
code.
__ __
/> /_ /| / /\ /| /> /| / /_ / /
/> /_ / |/ /_/ /-| / \ / |/ /_ /_ /_
http://users.vnet.net/bdarnell
bdarnell AT vnet DOT net
- Raw text -