Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] (PR#3374) struct Sprite "hack" in SDL client
Home

[Freeciv-Dev] (PR#3374) struct Sprite "hack" in SDL client

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#3374) struct Sprite "hack" in SDL client
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Sun, 9 Feb 2003 19:34:17 -0800
Reply-to: rt.freeciv.org@xxxxxxxxxxxxxx

The SDL client uses struct Sprite * basically like a void* - there is no
struct involved; the pointer just points at an SDL_Surface.

This is bad because it is not typesafe.  The correct thing is probably
to create a real Sprite structure, even if it does just have one element
(an SDL_Surface*).  However, this is not quite as easy as it seems.

jason



[Prev in Thread] Current Thread [Next in Thread]