<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40221 >

Hi Guys,

This is my first patch, fairly simple new feature to get started with  
the system.  (I was directed to this mailing address, hope it's the  
right one)

Information:
Author: Stuart Hacking
Platform: Mac OSX 10.2 (GTK-2.0 X11 client)
Patch Description: To draw curved connectors on the technology tree  
instead of straight lines.

Files which have been modified are:
client/reqtree.c
client/include/canvas_g.h
client/gui-gtk-2.0/canvas.c

Caveat: At the minute this will only compile on GTK2.0 (I apologise  
for this.  I initially modified the original canvas_put_line  
function, however, it seemed neater to add a new prototype to the  
canvas header- 'canvas-put-bezier-line', this function is called in  
reqtree.c when drawing the outgoing edges)

This function hasn't been added to other gui implementations yet, so  
please only try this if you are testing against gtk2.0.

The patch is attached as: reqtree_bezier_connectors.diff

Regards
Stuart


________________________________________________
...G The Gnome Lord swings a crude dagger
.GG. The Gnome Lord hits
[EMAIL PROTECTED] You die.
..G. Would you like your possessions identified?
Click '@' to find out more.


Hi Guys,

This is my first patch, fairly simple new feature to get started with the system.  (I was directed to this mailing address, hope it's the right one)

Information:
Author: Stuart Hacking
Platform: Mac OSX 10.2 (GTK-2.0 X11 client)
Patch Description: To draw curved connectors on the technology tree instead of straight lines.

Files which have been modified are:
client/reqtree.c
client/include/canvas_g.h
client/gui-gtk-2.0/canvas.c

Caveat: At the minute this will only compile on GTK2.0 (I apologise for this.  I initially modified the original canvas_put_line function, however, it seemed neater to add a new prototype to the canvas header- 'canvas-put-bezier-line', this function is called in reqtree.c when drawing the outgoing edges)

This function hasn't been added to other gui implementations yet, so please only try this if you are testing against gtk2.0.

The patch is attached as: reqtree_bezier_connectors.diff

Regards
Stuart

Attachment: reqtree_bezier_connectors.diff
Description: Binary data


________________________________________________
...G
 
The Gnome Lord swings a crude dagger
.GG. The Gnome Lord hits
.@.h You die.
..G. Would you like your possessions identified?
Click '@' to find out more.

_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to