X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fflexui%2Fsdlstandalone.pas;h=6b6dd8a3974cfce1f4ab6db4b1fb3486efe31091;hb=fa89488f45ed157516a0126f4c291a11a22765d7;hp=11f52108333395c3dc19a2279b67b93add82dda3;hpb=26290d9816334b8377531cf8b3e58643444f4d04;p=d2df-sdl.git diff --git a/src/flexui/sdlstandalone.pas b/src/flexui/sdlstandalone.pas index 11f5210..6b6dd8a 100644 --- a/src/flexui/sdlstandalone.pas +++ b/src/flexui/sdlstandalone.pas @@ -1,9 +1,8 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -70,6 +69,7 @@ begin //SDL_Quit(); result := true; fuiWinActive := fuiWinActive; + SDL_StartTextInput(); end; @@ -108,9 +108,10 @@ begin FillChar(ev, sizeof(ev), 0); while (SDL_PollEvent(@ev) > 0) do begin - if fuiOnSDLEvent(ev) then result := true; + fuiOnSDLEvent(ev); //if (ev.type_ = SDL_QUITEV) then exit; end; + if fuiQuitReceived then result := true; end;