Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] Re: suggestion: myth about freeciv
Home

[Freeciv-Dev] Re: suggestion: myth about freeciv

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: suggestion: myth about freeciv
From: Andreas Røsdal <andrearo@xxxxxxxxxxxx>
Date: Fri, 7 Feb 2003 17:07:43 +0100 (CET)

On Fri, 7 Feb 2003, Raimar Falke wrote:
> On Thu, Feb 06, 2003 at 11:49:04PM +0100, Andreas Røsdal wrote:
> > Hello!
> > I've been experimenting with scrolling "The Freeciv Myth"
> > on the introscreen.
> It doesn't compile. At least if some stricter options (like "-Wall
> -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations -Werror) are used.
>
> I fixed this. Now I got an access for index -1 on the myth array. The
> assert I inserted triggered. Also note that the use of _() in
> freeciv_myth isn't portable: only constants are allowed in
> initializers.

I'll have a look at the changes you made.

> > I couldn't get textwrapping to work in GTK (it works in GTK 2.0),
> > that would improve the patch a lot.
>
> Did you tried common/shared:wordwrap_string?

wordwrap_string change spaces in the array into newlines,
so it doesn't solve the problem completely.
The pango_layout_set_text() used in gui-gtk-2.0/graphics.c
can take chars with /n and display them properly.
gdk_draw_string() in gtk-1 can't, so each line has
to be drawn separately.

> Did you wrote the text?
>
>       Raimar

The Myth is from the freeciv website:
http://www.freeciv.org/myth.html

Andreas Røsdal


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