delorie.com/archives/browse.cgi | search |
Date: | Mon, 11 Oct 1999 13:16:16 +0200 (IST) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
X-Sender: | eliz AT is |
To: | Nicolas Blais <nicblais AT hotmail DOT com> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Please help...matrix problem with Allegro |
In-Reply-To: | <7tr1th$lev$1@nnrp1.deja.com> |
Message-ID: | <Pine.SUN.3.91.991011131558.28578E-100000@is> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sun, 10 Oct 1999, Nicolas Blais wrote: > > What are the values of res_x and res_y, and how they were decalred? > > > res_x is 640, res_y is 480 and they are decladed in global.hpp called > by in main.cpp. Are they declared ushort as well? > So, according to you, ushort is the problem? What > should they be? longs? They should be longs or unsigned longs, otherwise their multiplication might overflow. (Actually ints will also do, but if you want this to be portable to 16-bit compilers, use long.)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |