[SDL] sdl_rotozoom bug
CRV§ADER /KY
crusader at inwind.it
Mon May 5 10:27:02 PDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I copy SDL_rotozoom.c and SDL_rotozoom.h from the SDL_gfx 2.0 sources and
add them to a Dev-C++ project.
When I try to compile it using gcc 3.2, i get a linking error complaining
about zoomSurfaceSize.
Solution: add the zoomSurfaceSize prototype on top of SDL_rotozoom.c:
#ifdef WIN32
#include <windows.h>
#endif
#include <stdlib.h>
#include <string.h>
#include "SDL_rotozoom.h"
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
void zoomSurfaceSize(int width, int height, double zoomx, double zoomy, int
*dstwidth, int *dstheight); /* bugfix by CRVSADER/KY */
[] Guido Imperiale
[] CRV§ADER/KY
[] CVI.SCIENTIA.IMPERIVM
crusaderky at libero.it
http://crusaderky.da.ru
"Nam et ipsa scientia potestas est" (Knowledge is power)
-- Sir Francis Bacon (1561-1626)
Meditationes Sacrae, de Haeresibus
"I worry about my child and the Internet all the time, even though she's
too young to have logged on yet. Here's what I worry about. I worry that 10
or 15 years from now, she will come to me and say 'Daddy, where were you
when they took freedom of the press away from the Internet?'"
--Mike Godwin, Electronic Frontier Foundation
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPraezv/r+L926FlNEQK9FACbBRuJYD5i7Zu/VzHAwz/3IuQ0o44An3xv
P/J0DdGoEu1F+pOa+Ikl5hRW
=7Dkn
-----END PGP SIGNATURE-----
More information about the SDL
mailing list