X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Feditor.c;h=33e9dae57b849717be477ced9c6deb1acb9c2490;hb=3bb0d9d605aafe3e832aa79fa9e8c7f088556819;hp=2bf5543c8314fa4f345ebc88a4a2968a2141e9cd;hpb=150e2c478051926d16763c247f76291f81d248cb;p=rocksndiamonds.git diff --git a/src/editor.c b/src/editor.c index 2bf5543c..33e9dae5 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12376,6 +12376,8 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) case TEXT_SETCURSOR: DrawEditorElement(last_sx, last_sy, Feld[lx][ly]); DrawAreaBorder(sx, sy, sx, sy); + StartTextInput(SX + sx * ed_tilesize, SY + sy * ed_tilesize, + ed_tilesize, ed_tilesize); last_sx = sx; last_sy = sy; break; @@ -12420,6 +12422,7 @@ static int DrawLevelText(int sx, int sy, char letter, int mode) case TEXT_END: CopyLevelToUndoBuffer(UNDO_IMMEDIATE); DrawEditorElement(sx, sy, Feld[lx][ly]); + StopTextInput(); typing = FALSE; break;