Compare commits
No commits in common. "1c3f766e6b362d5d19f27e2de16e4c4b2dc59dbd" and "7bd164b17ee2fa9cdee8dcb0f9747b7e46e649ab" have entirely different histories.
1c3f766e6b
...
7bd164b17e
|
@ -44,12 +44,9 @@ https://git.walkero.gr/walkero/lite-xl/issues
|
||||||
- Changed the Gfx memory leak solution to a fix that was applied by the
|
- Changed the Gfx memory leak solution to a fix that was applied by the
|
||||||
editor development team on Lua scripts at a later version. Less custom
|
editor development team on Lua scripts at a later version. Less custom
|
||||||
code for AmigaOS 4 port.
|
code for AmigaOS 4 port.
|
||||||
- Now, when return from fullscreen, there is no extra header visible
|
|
||||||
at the top of the window content
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed the assertion error and crash when the window is resized (#2)
|
- Fixed the assertion error and crash when the window is resized
|
||||||
- Fixed the resolution on fullscreen toggle to be like the workbench (#4)
|
|
||||||
|
|
||||||
## [1.16.12.4] - 2021-12-31
|
## [1.16.12.4] - 2021-12-31
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -6,7 +6,6 @@ local LogView = require "core.logview"
|
||||||
|
|
||||||
|
|
||||||
local fullscreen = false
|
local fullscreen = false
|
||||||
local restore_title_view = false
|
|
||||||
|
|
||||||
local function suggest_directory(text)
|
local function suggest_directory(text)
|
||||||
text = common.home_expand(text)
|
text = common.home_expand(text)
|
||||||
|
@ -28,12 +27,9 @@ command.add(nil, {
|
||||||
|
|
||||||
["core:toggle-fullscreen"] = function()
|
["core:toggle-fullscreen"] = function()
|
||||||
fullscreen = not fullscreen
|
fullscreen = not fullscreen
|
||||||
if fullscreen then
|
|
||||||
restore_title_view = core.title_view.visible
|
|
||||||
end
|
|
||||||
system.set_window_mode(fullscreen and "fullscreen" or "normal")
|
system.set_window_mode(fullscreen and "fullscreen" or "normal")
|
||||||
core.show_title_bar(not fullscreen and restore_title_view)
|
core.show_title_bar(not fullscreen)
|
||||||
core.title_view:configure_hit_test(not fullscreen and restore_title_view)
|
core.title_view:configure_hit_test(not fullscreen)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
["core:reload-module"] = function()
|
["core:reload-module"] = function()
|
||||||
|
|
|
@ -291,11 +291,7 @@ static int f_set_window_mode(lua_State *L) {
|
||||||
int n = luaL_checkoption(L, 1, "normal", window_opts);
|
int n = luaL_checkoption(L, 1, "normal", window_opts);
|
||||||
SDL_SetWindowFullscreen(window,
|
SDL_SetWindowFullscreen(window,
|
||||||
n == WIN_FULLSCREEN ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
|
n == WIN_FULLSCREEN ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
|
||||||
if (n == WIN_NORMAL)
|
if (n == WIN_NORMAL) { SDL_RestoreWindow(window); }
|
||||||
{
|
|
||||||
ren_resize_window();
|
|
||||||
SDL_RestoreWindow(window);
|
|
||||||
}
|
|
||||||
if (n == WIN_MAXIMIZED) { SDL_MaximizeWindow(window); }
|
if (n == WIN_MAXIMIZED) { SDL_MaximizeWindow(window); }
|
||||||
if (n == WIN_MINIMIZED) { SDL_MinimizeWindow(window); }
|
if (n == WIN_MINIMIZED) { SDL_MinimizeWindow(window); }
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -135,8 +135,6 @@ int main(int argc, char **argv) {
|
||||||
window = SDL_CreateWindow(
|
window = SDL_CreateWindow(
|
||||||
"", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, dm.w * 0.8, dm.h * 0.8,
|
"", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, dm.w * 0.8, dm.h * 0.8,
|
||||||
SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_HIDDEN);
|
SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_HIDDEN);
|
||||||
SDL_SetWindowDisplayMode(window, &dm);
|
|
||||||
|
|
||||||
init_window_icon();
|
init_window_icon();
|
||||||
ren_init(window);
|
ren_init(window);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue