Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] (PR#3457) New sprite loading
Home

[Freeciv-Dev] (PR#3457) New sprite loading

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#3457) New sprite loading
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Mar 2003 20:16:19 -0800
Reply-to: rt@xxxxxxxxxxxxxx

[rfalke - Tue Mar  4 21:40:01 2003]:

> On Mon, Feb 17, 2003 at 11:58:54AM -0800, Raimar Falke wrote:
> > 
> > 
> > I wrote a nice explanation of the patch but than I hit 'q' in the mail
> > reader. ARGL. So here is the very short version:
> > 
> > Problems:
> >  - special case for not permanently loaded/used graphics needed
> >  - gui-sdl need sprites which other guis doesn't want to load
> > 
> > Solution has three functions load_sprite, unload_sprite and
> > finish_loading. See code for usage.
> 
> I have applied the Jason's requests.
> 
> I have removed the sample user (intro/radar graphics). I have thought
> about it and all the solution doesn't seem very nice. First problem
> here is that I want a load_intro_radar_sprites which belongs to
> free_intro_radar_sprites. Both can be made gui-independent. Problem
> here is that load_intro_radar_sprites is called from gui code while
> free_intro_radar_sprites is called from common code.

Good plan.

Now when I run the client (gui-gtk-2.0) I simply get:

(civclient:7399): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 729
(gdk_pixbuf_new_from_file): assertion `filename != NULL' failed
0: Failed reading XPM file: (null)

and the client exits.  This is because main_intro_filename is NULL.

jason




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