parent
7d458391ca
commit
25ea33c218
@ -1 +1 @@
|
|||||||
ec470fda74b9f5c398e24838b5ba058827a46e0b SOURCES/celluloid-0.25.tar.xz
|
2d940c07c3290a3dc25cc296484c54f6c14ecc60 SOURCES/celluloid-0.22.tar.xz
|
||||||
|
@ -1 +1 @@
|
|||||||
SOURCES/celluloid-0.25.tar.xz
|
SOURCES/celluloid-0.22.tar.xz
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
From 52a7d396c846eb337ad7796fdb7163e2bc208d64 Mon Sep 17 00:00:00 2001
|
||||||
|
From: gnome-mpv <gnome-mpv@nowhere>
|
||||||
|
Date: Sat, 13 Nov 2021 00:39:59 +0700
|
||||||
|
Subject: [PATCH] controller: Fix autofit triggering regardless of settings
|
||||||
|
|
||||||
|
When a video is opened for the first time, the window-scale property is
|
||||||
|
updated, triggering an autofit. Fix this by checking if window-scale is
|
||||||
|
transitioning from the value of zero, which indicates that a video is
|
||||||
|
being opened for the first time, and only requesting an autofit if this
|
||||||
|
is not the case.
|
||||||
|
|
||||||
|
Fixes #705.
|
||||||
|
---
|
||||||
|
src/celluloid-controller.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/celluloid-controller.c b/src/celluloid-controller.c
|
||||||
|
index d62ac1da..bfabfd1a 100644
|
||||||
|
--- a/src/celluloid-controller.c
|
||||||
|
+++ b/src/celluloid-controller.c
|
||||||
|
@@ -920,7 +920,7 @@ window_scale_handler(GObject *object, GParamSpec *pspec, gpointer data)
|
||||||
|
window_scale = MIN( width/(gdouble)video_width,
|
||||||
|
height/(gdouble)video_height );
|
||||||
|
|
||||||
|
- if(ABS(window_scale-new_window_scale) > 0.0001)
|
||||||
|
+ if(window_scale > 0.0 && ABS(window_scale-new_window_scale) > 0.0001)
|
||||||
|
{
|
||||||
|
celluloid_controller_autofit(data, new_window_scale);
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
From 65d0e47fcede58cb78df8e9a29ff669e2287273b Mon Sep 17 00:00:00 2001
|
||||||
|
From: gnome-mpv <gnome-mpv@nowhere>
|
||||||
|
Date: Sun, 21 Nov 2021 17:54:34 +0700
|
||||||
|
Subject: [PATCH] main-window: Fix window size shrinking across sessions
|
||||||
|
|
||||||
|
Fixes #713.
|
||||||
|
---
|
||||||
|
src/celluloid-main-window.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/celluloid-main-window.c b/src/celluloid-main-window.c
|
||||||
|
index e96b50f3..6af84749 100644
|
||||||
|
--- a/src/celluloid-main-window.c
|
||||||
|
+++ b/src/celluloid-main-window.c
|
||||||
|
@@ -576,8 +576,8 @@ celluloid_main_window_save_state(CelluloidMainWindow *wnd)
|
||||||
|
|
||||||
|
if(!maximized)
|
||||||
|
{
|
||||||
|
- g_settings_set_int(settings, "width", width - 52);
|
||||||
|
- g_settings_set_int(settings, "height", height - 52);
|
||||||
|
+ g_settings_set_int(settings, "width", width);
|
||||||
|
+ g_settings_set_int(settings, "height", height);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(celluloid_main_window_get_playlist_visible(wnd))
|
Loading…
Reference in new issue