Обновил версию до ZenGL 4.15.
Больших изменений нет, но какие-то критичные изменения присутствуют:
- исправлен баг для Linux, когда при вызове "zgl_SetParam" параметры рабочей области не менялись вместе с общей областью. Это критично для функционала мыши: например в игре "Змейка", если включить мышь, не работал нижний пункт меню, мышь якобы выходила за пределы окна.
- исправлены ошибки для Mac OS. В том числе и изменение размеров окна и переключения окна в полноэкранный режим и обратно (теперь 4-я демка правильно работает, кроме одного пункта).
- когда при создании окна задан хоть один параметр больше размера окна, приложение переходит в полноэкранный режим.
- исправлены ошибки связанные с Android. В том числе исправлена ошибка по работе с тачскрином, теперь корректированное окно возвращает значения касаний только в пределах рабочего окна (для полного окна есть глобальные координаты).
- исправлена "древняя" ошибка джойстиков (Linux) при отладке приложений (и сразу во все демки добавлены все флаги отладки) - благодарность Skvoznjak за напоминание и напоминание как обойти проблему.
- исправлена работа с мышкой в LCL-приложениях.
- исправлено возвращение дирректорий для LCL-приложений.
В общем где-то ошибки древние и руки до них не доходили, а где-то закравшиеся ошибки, из-за того, что пилю до сих пор внутрянку
ZenGL. Пора бы уже достаточно стабильной ей стать, да всё равно мелочи вылазят.
Вот что это за баг выполз? Для
Android-приложений. Если где-то в начале объявить одним из первых модулей
Sysutils, то приложение просто "не запустится", и ошибок не выдаст. Просто будет висеть и пытаться проинициализироваться.
Отметьте для себя, что для
Android не надо
Sysutils ставить одним из первых модулей в главном модуле программы.
В общем, думаю достаточно стабильная версия. Я даже до Mac-а добрался, чтоб исправить ошибки (хотя, там исправлять то нечего было для изменения разрешения, сам давным давно пропустил момент обновления окна).
Всех с праздниками!

-------------------------------------------------
Google translate:
Updated to ZenGL 4.15.
No major changes, but some critical changes are present:
- fixed a bug for Linux, when calling "zgl_SetParam" the parameters of the workspace did not change along with the general area. This is critical for the functionality of the mouse: for example, in the game "Snake", if you turn on the mouse, the bottom menu item did not work, the mouse allegedly went beyond the window.
- fixed bugs for Mac OS. Including changing the window size and switching the window to full-screen mode and back (now the 4th demo works correctly, except for one item).
- when at least one parameter larger than the window size is specified when creating a window, the application switches to full-screen mode.
- fixed bugs related to Android. Including the bug with working with the touchscreen fixed, now the adjusted window returns touch values only within the working window (there are global coordinates for the full window).
- the "ancient" bug with joysticks (Linux) when debugging applications fixed (and all debug flags were added to all demos at once) - thanks to Skvoznjak for the reminder and reminder on how to get around the problem.
- working with the mouse in LCL applications fixed.
- returning directories for LCL applications fixed.
In general, some of the errors are ancient and I never got around to them, and some are errors that have crept in because I'm still sawing the internals of
ZenGL. It's time for it to become stable enough, but little things still pop up.
What kind of bug is this? For
Android applications. If somewhere at the beginning you declare
Sysutils as one of the first modules, then the application simply "will not start" and will not give errors. It will simply hang and try to initialize.
Note for yourself that for
Android you do not need to set
Sysutils as one of the first modules in the main module of the program.
In general, I think it is a fairly stable version. I even got to Mac to fix the errors (although there was nothing to fix there to change the resolution, I myself missed the moment of updating the window a long time ago).
Happy holidays to all!
