[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-commits] CVS: adonthell/src label_input.cc,1.10,1.11
From: |
Kai Sterker <address@hidden> |
Subject: |
[Adonthell-commits] CVS: adonthell/src label_input.cc,1.10,1.11 |
Date: |
Fri, 17 Jan 2003 16:33:37 -0500 |
Update of /cvsroot/adonthell/adonthell/src
In directory subversions:/tmp/cvs-serv634
Modified Files:
label_input.cc
Log Message:
IMPROVED code a little
Index: label_input.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/label_input.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** label_input.cc 17 Jan 2003 20:03:41 -0000 1.10
--- label_input.cc 17 Jan 2003 21:33:35 -0000 1.11
***************
*** 13,17 ****
*/
- #include <SDL/SDL_endian.h>
#include "label_input.h"
--- 13,16 ----
***************
*** 38,49 ****
static s_int32 c;
! while((c=input::get_next_unicode())>0)
{
cursor_undraw ();
! if((c == SDLK_BACKSPACE || c == SDLK_DELETE))
{
if (my_text_.empty () || my_cursor_.idx == 0) return true;
! my_text_.erase(--my_cursor_.idx, 1);
update_cursor ();
my_old_cursor_ = my_cursor_;
--- 37,48 ----
static s_int32 c;
! while ((c = input::get_next_unicode ()) > 0)
{
cursor_undraw ();
! if (c == SDLK_BACKSPACE || c == SDLK_DELETE)
{
if (my_text_.empty () || my_cursor_.idx == 0) return true;
! my_text_.erase (--my_cursor_.idx, 1);
update_cursor ();
my_old_cursor_ = my_cursor_;
***************
*** 57,65 ****
build (false);
}
! else if(c == SDLK_RETURN) add_text ("\n");
! else
{
string s (1, (char) c);
! if (my_font_->in_table(c)) add_text (s);
}
}
--- 56,64 ----
build (false);
}
! else if (c == SDLK_RETURN) add_text ("\n");
! else if (my_font_->in_table (c))
{
string s (1, (char) c);
! add_text (s);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-commits] CVS: adonthell/src label_input.cc,1.10,1.11,
Kai Sterker <address@hidden> <=
- Prev by Date:
[Adonthell-commits] CVS: adonthell/src label_input.cc,1.9,1.10
- Next by Date:
[Adonthell-commits] CVS: adonthell/src event.h,1.30,1.31 gametime.cc,1.12,1.13 item_base.cc,1.2,1.3
- Previous by thread:
[Adonthell-commits] CVS: adonthell/src label_input.cc,1.9,1.10
- Next by thread:
[Adonthell-commits] CVS: adonthell/src event.h,1.30,1.31 gametime.cc,1.12,1.13 item_base.cc,1.2,1.3
- Index(es):