[Tux4kids-commits] r766 - in tuxtype/trunk: po src
dbruce-guest at alioth.debian.org
dbruce-guest at alioth.debian.org
Sat Nov 22 11:56:42 UTC 2008
Author: dbruce-guest
Date: 2008-11-22 11:56:42 +0000 (Sat, 22 Nov 2008)
New Revision: 766
Modified:
tuxtype/trunk/po/ar.po
tuxtype/trunk/po/ca.po
tuxtype/trunk/po/cs.po
tuxtype/trunk/po/da.po
tuxtype/trunk/po/de.po
tuxtype/trunk/po/el.po
tuxtype/trunk/po/en at boldquot.po
tuxtype/trunk/po/en at quot.po
tuxtype/trunk/po/en_GB.po
tuxtype/trunk/po/es.po
tuxtype/trunk/po/eu.po
tuxtype/trunk/po/fr.po
tuxtype/trunk/po/it.po
tuxtype/trunk/po/ja.po
tuxtype/trunk/po/lt.po
tuxtype/trunk/po/ml.gmo
tuxtype/trunk/po/ml.po
tuxtype/trunk/po/nb.po
tuxtype/trunk/po/ne.po
tuxtype/trunk/po/nl.po
tuxtype/trunk/po/nn.po
tuxtype/trunk/po/pt.po
tuxtype/trunk/po/ru.po
tuxtype/trunk/po/sv.po
tuxtype/trunk/po/sw.po
tuxtype/trunk/po/tuxtype.pot
tuxtype/trunk/po/wo.po
tuxtype/trunk/src/titlescreen.c
Log:
code clean up of titlescreen.c
Modified: tuxtype/trunk/po/ar.po
===================================================================
--- tuxtype/trunk/po/ar.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/ar.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mobin M <mobinmohan at gmail.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/ca.po
===================================================================
--- tuxtype/trunk/po/ca.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/ca.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mobin M <mobinmohan at gmail.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/cs.po
===================================================================
--- tuxtype/trunk/po/cs.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/cs.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2007-11-10 16:36+0100\n"
"Last-Translator: JardaK <krejci at zstenis.com>\n"
"Language-Team: czech <cs at li.org>\n"
Modified: tuxtype/trunk/po/da.po
===================================================================
--- tuxtype/trunk/po/da.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/da.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2003-05-08 17:58+0200\n"
"Last-Translator: Nikolai Beier <beier at ofir.dk>\n"
"Language-Team: Danish\n"
Modified: tuxtype/trunk/po/de.po
===================================================================
--- tuxtype/trunk/po/de.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/de.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2003-06-14 19:00+0000\n"
"Last-Translator: Andreas Ramm <ace1 at gmx.net>\n"
"Language-Team: German\n"
Modified: tuxtype/trunk/po/el.po
===================================================================
--- tuxtype/trunk/po/el.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/el.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/en at boldquot.po
===================================================================
--- tuxtype/trunk/po/en at boldquot.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/en at boldquot.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -31,8 +31,8 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.7.0\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
-"PO-Revision-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
+"PO-Revision-Date: 2008-11-10 06:37-0600\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
Modified: tuxtype/trunk/po/en at quot.po
===================================================================
--- tuxtype/trunk/po/en at quot.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/en at quot.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -28,8 +28,8 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.7.0\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
-"PO-Revision-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
+"PO-Revision-Date: 2008-11-10 06:37-0600\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
Modified: tuxtype/trunk/po/en_GB.po
===================================================================
--- tuxtype/trunk/po/en_GB.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/en_GB.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tuxtype\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mobin M <mobinmohan at gmail.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/es.po
===================================================================
--- tuxtype/trunk/po/es.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/es.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2007-09-16 19:00+0000\n"
"Last-Translator: Amaya Rodrigo <amaya at debian.org>\n"
"Language-Team: Spanish\n"
Modified: tuxtype/trunk/po/eu.po
===================================================================
--- tuxtype/trunk/po/eu.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/eu.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/fr.po
===================================================================
--- tuxtype/trunk/po/fr.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/fr.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/it.po
===================================================================
--- tuxtype/trunk/po/it.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/it.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/ja.po
===================================================================
--- tuxtype/trunk/po/ja.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/ja.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/lt.po
===================================================================
--- tuxtype/trunk/po/lt.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/lt.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2004-10-20\n"
"Last-Translator: Gintautas Grigas <grigas at ktl.mii.lt>\n"
"Language-Team: Lithuanian\n"
Modified: tuxtype/trunk/po/ml.gmo
===================================================================
(Binary files differ)
Modified: tuxtype/trunk/po/ml.po
===================================================================
--- tuxtype/trunk/po/ml.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/ml.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tuxtype\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mobin M <mobinmohan at gmail.com>\n"
"Language-Team: Swathanthra|സ്വതന്ത്ര Malayalam|മലയാളം Computing|കമ്പ്യൂട്ടിങ്ങ് <smc-"
Modified: tuxtype/trunk/po/nb.po
===================================================================
--- tuxtype/trunk/po/nb.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/nb.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2005-10-20 21:24+0200\n"
"Last-Translator: Trond Mæhlum <trondm at skolelinux.no>\n"
"Language-Team: Norwegian Bokmål <i18n-nb at lister.ping.uio.no>\n"
Modified: tuxtype/trunk/po/ne.po
===================================================================
--- tuxtype/trunk/po/ne.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/ne.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mobin M <mobinmohan at gmail.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/nl.po
===================================================================
--- tuxtype/trunk/po/nl.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/nl.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tuxtype\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/nn.po
===================================================================
--- tuxtype/trunk/po/nn.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/nn.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2005-02-12 13:13+0100\n"
"Last-Translator: Karl Ove Hufthammer <karl at huftis.org>\n"
"Language-Team: Norwegian Nynorsk <i18n-nn at lister.ping.uio.no>\n"
Modified: tuxtype/trunk/po/pt.po
===================================================================
--- tuxtype/trunk/po/pt.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/pt.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2007-02-07 16:08+0000\n"
"Last-Translator: Hudson G M Figueredo <kynder at pquilinux.org>\n"
"Language-Team: <pt at li.org>\n"
Modified: tuxtype/trunk/po/ru.po
===================================================================
--- tuxtype/trunk/po/ru.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/ru.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Mobin M <mobinmohan at gmail.com>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/sv.po
===================================================================
--- tuxtype/trunk/po/sv.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/sv.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: tuxtype2 1.5.1\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2003-07-23 17:44+0200\n"
"Last-Translator: Göran Uddeborg <goeran at uddeborg.se>\n"
"Language-Team: Swedish <sv at li.org>\n"
Modified: tuxtype/trunk/po/sw.po
===================================================================
--- tuxtype/trunk/po/sw.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/sw.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/tuxtype.pot
===================================================================
--- tuxtype/trunk/po/tuxtype.pot 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/tuxtype.pot 2008-11-22 11:56:42 UTC (rev 766)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
Modified: tuxtype/trunk/po/wo.po
===================================================================
--- tuxtype/trunk/po/wo.po 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/po/wo.po 2008-11-22 11:56:42 UTC (rev 766)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: Tux Typing 1.5.16\n"
"Report-Msgid-Bugs-To: tux4kids-tuxtype-dev at lists.alioth.debian.org\n"
-"POT-Creation-Date: 2008-10-16 21:12-0500\n"
+"POT-Creation-Date: 2008-11-10 06:37-0600\n"
"PO-Revision-Date: 2007-09-25 09:50-0000\n"
"Last-Translator: Ousmane Faty Ndongo et Dominique Rochefort <alfanet at anafa."
"org>\n"
Modified: tuxtype/trunk/src/titlescreen.c
===================================================================
--- tuxtype/trunk/src/titlescreen.c 2008-11-06 02:39:59 UTC (rev 765)
+++ tuxtype/trunk/src/titlescreen.c 2008-11-22 11:56:42 UTC (rev 766)
@@ -1436,92 +1436,115 @@
break;
case SDL_MOUSEBUTTONDOWN:
- if (inRect( leftRect, event.button.x, event.button.y ))
- if (loc-(loc%8)-8 >= 0) {
- loc=loc-(loc%8)-8;
- break;
- }
- if (inRect( rightRect, event.button.x, event.button.y ))
- if (loc-(loc%8)+8 < lists) {
- loc=loc-(loc%8)+8;
- break;
- }
- for (i=0; (i<8) && (loc-(loc%8)+i<lists); i++)
- if (inRect(titleRects[i], event.button.x, event.button.y)) {
- loc = loc-(loc%8)+i;
- ClearWordList(); /* clear old selection */
- //if (loc==0)
- // UseAlphabet();
- //else
- GenerateWordList(wordlistFile[loc]);
- stop = 1;
- break;
- }
- break;
- case SDL_KEYDOWN:
- if (event.key.keysym.sym == SDLK_ESCAPE) { stop = 2; break; }
- if (event.key.keysym.sym == SDLK_RETURN) {
- ClearWordList(); /* clear old selection */
- //if (loc==0)
- // UseAlphabet();
- //else
- GenerateWordList(wordlistFile[loc]);
- stop = 1;
- break;
- }
+ if (inRect( leftRect, event.button.x, event.button.y ))
+ {
+ if (loc - (loc % 8) - 8 >= 0)
+ {
+ loc = loc - (loc % 8) - 8;
+ break;
+ }
+ }
- if ((event.key.keysym.sym == SDLK_LEFT) || (event.key.keysym.sym == SDLK_PAGEUP)) {
- if (loc-(loc%8)-8 >= 0)
- loc=loc-(loc%8)-8;
- }
+ if (inRect(rightRect, event.button.x, event.button.y))
+ {
+ if (loc - (loc % 8) + 8 < lists)
+ {
+ loc = loc - (loc % 8) + 8;
+ break;
+ }
+ }
- if ((event.key.keysym.sym == SDLK_RIGHT) || (event.key.keysym.sym == SDLK_PAGEDOWN)) {
- if (loc-(loc%8)+8 < lists)
- loc=(loc-(loc%8)+8);
- }
+ for (i = 0; (i < 8) && (loc - (loc % 8) + i < lists); i++)
+ {
+ if (inRect(titleRects[i], event.button.x, event.button.y))
+ {
+ loc = loc - (loc % 8) + i;
+ ClearWordList(); /* clear old selection */
+ GenerateWordList(wordlistFile[loc]);
+ stop = 1;
+ break;
+ }
+ }
- if (event.key.keysym.sym == SDLK_UP) {
- if (loc > 0)
- loc--;
- }
+ break;
- if (event.key.keysym.sym == SDLK_DOWN) {
- if (loc+1<lists)
- loc++;
- }
+ case SDL_KEYDOWN:
+ if (event.key.keysym.sym == SDLK_ESCAPE)
+ {
+ stop = 2;
+ break;
+ }
+
+ if (event.key.keysym.sym == SDLK_RETURN)
+ {
+ ClearWordList(); /* clear old selection */
+ GenerateWordList(wordlistFile[loc]);
+ stop = 1;
+ break;
+ }
+
+ if ((event.key.keysym.sym == SDLK_LEFT)
+ || (event.key.keysym.sym == SDLK_PAGEUP))
+ {
+ if (loc - (loc % 8) - 8 >= 0)
+ loc = loc - (loc % 8) - 8;
+ }
+
+ if ((event.key.keysym.sym == SDLK_RIGHT)
+ || (event.key.keysym.sym == SDLK_PAGEDOWN))
+ {
+ if (loc - (loc % 8) + 8 < lists)
+ loc = (loc - (loc % 8) + 8);
+ }
+
+ if (event.key.keysym.sym == SDLK_UP)
+ {
+ if (loc > 0)
+ loc--;
+ }
+
+ if (event.key.keysym.sym == SDLK_DOWN)
+ {
+ if (loc+1<lists)
+ loc++;
+ }
}
}
- if (old_loc != loc) {
- int start;
+ /* Redraw if we have changed location: */
+ if (old_loc != loc)
+ {
+ int start;
- SDL_BlitSurface(CurrentBkgd(), NULL, screen, NULL );
+ SDL_BlitSurface(CurrentBkgd(), NULL, screen, NULL );
- start = loc - (loc % 8);
- for (i = start; i<MIN(start+8,lists); i++) {
- titleRects[i%8].x = screen->w/2 - (titles[i]->w/2);
- if (i == loc)
- SDL_BlitSurface(select[loc], NULL, screen, &titleRects[i%8]);
- else
- SDL_BlitSurface(titles[i], NULL, screen, &titleRects[i%8]);
- }
+ start = loc - (loc % 8);
- /* --- draw buttons --- */
+ for (i = start; i< MIN(start + 8,lists); i++)
+ {
+ titleRects[i % 8].x = screen->w/2 - (titles[i]->w/2);
+ if (i == loc) /* Draw selected text in yellow: */
+ SDL_BlitSurface(select[loc], NULL, screen, &titleRects[i%8]);
+ else /* Draw unselected text in white: */
+ SDL_BlitSurface(titles[i], NULL, screen, &titleRects[i%8]);
+ }
- if (start>0)
- SDL_BlitSurface( left, NULL, screen, &leftRect );
+ /* --- draw arrow buttons --- */
+ if (start > 0)
+ SDL_BlitSurface(left, NULL, screen, &leftRect);
- if (start+8<lists)
- SDL_BlitSurface( right, NULL, screen, &rightRect );
+ if (start + 8 < lists)
+ SDL_BlitSurface(right, NULL, screen, &rightRect);
- SDL_UpdateRect(screen, 0, 0, 0 ,0);
- }
- SDL_Delay(40);
- old_loc = loc;
+ SDL_UpdateRect(screen, 0, 0, 0 ,0);
+ }
+
+ SDL_Delay(40);
+ old_loc = loc;
}
/* --- clear graphics before leaving function --- */
- for (i = 0; i<lists; i++)
+ for (i = 0; i < lists; i++)
{
SDL_FreeSurface(titles[i]);
SDL_FreeSurface(select[i]);
More information about the Tux4kids-commits
mailing list