[xmoto-dev] GUI frame texture |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/xmoto-dev Archives
]
- To: xmoto-dev@xxxxxxxxxxxxxxxxxxx
- Subject: [xmoto-dev] GUI frame texture
- From: "Kees Jongenburger" <kees.jongenburger@xxxxxxxxx>
- Date: Mon, 1 Jan 2007 14:47:03 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EffmZ+LdDOWCQW1ycUN3x6J2y5T8Rnjhwatd50dzN5U7K1JCh7Yi7ORXvLMRNygESwY5FxhXnKQwpz8XBwvluq0yxt/EkKSAZt52aoUh0PN61KaUrQyDeSAeAeKbpsWTnuTpLAkUU19BMsjUM1W0PHlPWQz1Tt0ELCsPUN8KvfA=
Hi
in the GUI.cpp the gui elements for a frame top left right and bottom
are defined as being 8x8 pixel wide. in order to draw them correctly
on sdl I need to scale them until the right size is reached. My codes
does this on the full texture. This give me the following problem that
if a line it to be 600 pixel i need to scale the texture 75 times and
this it to much. In this case the texture is 256 pixel wide. I want to
change the
code in GUI.cpp so that a larger part of the texture is used for
drawing the horizontal and vertical line. This works just fine with
the default texture but might give problems with other textures.
I have committed this code, if it gives problems please let me know.
greetings