diff --git a/source/blender/src/editfont.c b/source/blender/src/editfont.c index aa4d10646a0..9593ccaa0a7 100644 --- a/source/blender/src/editfont.c +++ b/source/blender/src/editfont.c @@ -317,14 +317,14 @@ void do_textedit(unsigned short event, short val, char _ascii) Curve *cu; static int accentcode= 0; int x, doit=0, cursmove=0; - int ascii = _ascii; + int ascii = _ascii; cu= G.obedit->data; if(ascii) { - /* o.a. afvangen van TAB (TAB==9) */ - if( (ascii > 31 && ascii < 200 && ascii != 127) || (ascii==13) || (ascii==10) || (ascii==8)) { + /* handle case like TAB (TAB==9) */ + if( (ascii > 31 && ascii < 254 && ascii != 127) || (ascii==13) || (ascii==10) || (ascii==8)) { if(accentcode) { if(cu->pos>0) textbuf[cu->pos-1]= findaccent(textbuf[cu->pos-1], ascii); @@ -332,6 +332,9 @@ void do_textedit(unsigned short event, short val, char _ascii) } else if(cu->len #include +#include /* isprint */ #include #include @@ -390,12 +391,15 @@ static void headmenu(ScrArea *sa) static void addqueue_ext(short win, unsigned short event, short val, char ascii) { if (win<4 || !areawinar[win]) { - printf("bad call to addqueue: %d (%d, %d)\n", win, event, val); - } else { + if(win==0) // other win ids are for mainwin & renderwin + printf("bad call to addqueue: %d (%d, %d)\n", win, event, val); + } + else { BWinEvent evt; evt.event= event; evt.val= val; evt.ascii= ascii; + bwin_qadd(win, &evt); } } @@ -1635,19 +1639,15 @@ static unsigned short convert_for_nonumpad(unsigned short event) void add_to_mainqueue(Window *win, void *user_data, short evt, short val, char ascii) { - short qual= window_get_qual(win); statechanged= 1; if (U.flag & NONUMPAD) { evt= convert_for_nonumpad(evt); } - - /* enforce some guarentees about ascii values... these should - * be enforced in ghost probably - zr - */ - if (!val || !isprint(ascii) || (qual&~LR_SHIFTKEY)) { + /* accept the extended ascii set (ton) */ + if( !val || ascii<32 ) { ascii= '\0'; } @@ -2239,7 +2239,7 @@ static void scrarea_draw_splitpoint(ScrArea *sa, char dir, float fac) static void splitarea_interactive(ScrArea *area, ScrEdge *onedge) { ScrArea *sa= area; - float fac; + float fac= 0.0; unsigned short event; short ok= 0, val, split = 0, mval[2], mvalo[2], first= 1; char dir; @@ -2323,7 +2323,7 @@ View3D *find_biggest_view3d(void) ScrArea *find_biggest_area_of_type(int spacecode) { ScrArea *sa, *biggest= NULL; - int bigsize; + int bigsize= 0; for (sa= G.curscreen->areabase.first; sa; sa= sa->next) { if (spacecode==0 || sa->spacetype==spacecode) { @@ -2756,9 +2756,9 @@ void drawedge(short x1, short y1, short x2, short y2) int a; if(x1==x2) { /* vertical */ - if (y2sizey) y2+= EDGE_EXTEND; @@ -2776,9 +2776,9 @@ void drawedge(short x1, short y1, short x2, short y2) glEnd(); } else { /* horizontal */ - if (x2sizex) x2+= EDGE_EXTEND;