# Maintainer: goodguy <lists.cinelerra-gg.org>
pkgname=cin
pkgver=5.1
-pkgrel=20191031
+pkgrel=20191130
pkgdesc="Cinelerra git://git.cinelerra-gg.org/goodguy/cinelerra.git ($pkgrel)"
arch=('x86_64')
url="https://www.cinelerra-gg.org"
yum -y install /tmp/$yasm
rm -f /tmp/$yasm
;;
-#"fedora30")
+#"fedora3*")
# dnf group install "Development Tools"
-# ... lzma-sdk-devel libtool ...
+# ... rpm-build lzma-sdk-devel libtool ...
"fedora")
dnf group install "Development Tools"
dnf -y --best --allowerasing \
-%define ver 20191031
+%define ver 20191130
%define cin cinelerra
Summary: Multimedia Editing and construction
-cin (1:5.1.20191031) unstable; urgency=low
+cin (1:5.1.20191130) unstable; urgency=low
[ guy goode ]
Source: cin
Section: video
Priority: optional
-Standards-Version: 5.1.20191031
+Standards-Version: 5.1.20191130
Maintainer: mailing list <cin@lists.cinelerra-gg.org>
Homepage: https://www.cinelerra-gg.org/
Build-Depends:
int Canvas::keypress_event(BC_WindowBase *caller)
{
int key = caller->get_keypress();
- int on = -1;
switch( key ) {
- case 'f':
- on = get_fullscreen() ? 0 : 1;
- break;
+ case 'f': {
+ int on = get_fullscreen() ? 0 : 1;
+ set_fullscreen(on, 1);
+ break; }
case ESC:
- on = 0;
+ set_fullscreen(0, 1);
break;
default:
return 0;
}
- if( on >= 0 )
- set_fullscreen(on);
return 1;
}
{
// It isn't a problem to delete the canvas from in here because the event
// dispatcher is the canvas subwindow.
- canvas->set_fullscreen(0);
+ canvas->set_fullscreen(0, 1);
return 1;
}
}
int CanvasFullScreenItem::handle_event()
{
- canvas->set_fullscreen(1);
+ canvas->set_fullscreen(1, 1);
return 1;
}
virtual int get_cwindow_controls() { return 0; }
virtual int get_fullscreen();
virtual int get_clear_color();
- virtual int set_fullscreen(int on, int unlock=1);
+ virtual int set_fullscreen(int on, int unlock);
int cursor_leave_event_base(BC_WindowBase *caller);
int cursor_enter_event_base(BC_WindowBase *caller);
operation[CWINDOW_CAMERA]->get_value() ||
operation[CWINDOW_PROJECTOR]->get_value() ) {
cpanel_zoom->set_shown(1);
+ subwindow->update_canvas(0);
}
else
cpanel_zoom->set_shown(0);
keyboard_zoomout();
result = 1;
break;
- case 'f':
- canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1);
+ case 'f': {
+ int on = canvas->get_fullscreen() ? 0 : 1;
+ canvas->set_fullscreen(on, 1);
result = 1;
- break;
+ break; }
case ESC:
- canvas->set_fullscreen(0);
+ canvas->set_fullscreen(0, 1);
result = 1;
break;
case 'x':
mwindow->edl->session->cwindow_scrollbars = use_scrollbars;
}
-int CWindowCanvas::set_fullscreen(int on)
+int CWindowCanvas::set_fullscreen(int on, int unlock)
{
int ret = 0;
if( on && !get_fullscreen() ) {
last_xscroll = get_xscroll();
last_yscroll = get_yscroll();
last_zoom = get_zoom();
- Canvas::set_fullscreen(1);
+ Canvas::set_fullscreen(1, unlock);
zoom_auto();
ret = 1;
}
if( !on && get_fullscreen() ) {
- Canvas::set_fullscreen(0);
+ Canvas::set_fullscreen(0, unlock);
gui->zoom_panel->update(get_zoom());
update_zoom(last_xscroll, last_yscroll, last_zoom);
gui->update_canvas();
void reset_camera();
void reset_projector();
void draw_crophandle(int x, int y);
- int set_fullscreen(int on);
+ int set_fullscreen(int on, int unlock);
// Draw the camera/projector overlay in different colors.
void draw_outlines(int do_camera);
case 'Z':
mwindow->redo_entry(this);
break;
- case 'f':
- canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1);
- break;
+ case 'f': {
+ int on = canvas->get_fullscreen() ? 0 : 1;
+ canvas->set_fullscreen(on, 1);
+ break; }
case ESC:
- canvas->set_fullscreen(0);
+ canvas->set_fullscreen(0, 1);
break;
case KEY_F1:
case KEY_F2:
}
int result = 1;
switch( key ) {
- case 'f':
- canvas->set_fullscreen(canvas->get_fullscreen() ? 0 : 1);
- break;
+ case 'f': {
+ int on = canvas->get_fullscreen() ? 0 : 1;
+ canvas->set_fullscreen(on, 1);
+ break; }
case ESC:
- canvas->set_fullscreen(0);
+ canvas->set_fullscreen(0, 1);
break;
default:
unlock_window();
CHECK_LIB([vaapi_drm], [va-drm], [vaGetDisplayDRM])
fi
if test "x$HAVE_VAAPI" != "xyes" -a "x$WANT_VAAPI" = "xyes"; then
- AC_MSG_ERROR([requires vappi support.])
+ AC_MSG_ERROR([requires vaapi support.])
fi
#CHECK_LIB([NVENC], [nvidia-encode], [NvEncodeAPICreateInstance])
if test "x$WANT_VAAPI" != "xno" -a "x$HAVE_VAAPI" = "xyes"; then
FFMPEG_EXTRA_LDFLAGS+=' -lva'
EXTRA_LIBS+=' -lva'
- WANT_VAPPI="yes"
+ WANT_VAAPI="yes"
if test "x$HAVE_vaapi_x11" = "xyes"; then
FFMPEG_EXTRA_LDFLAGS+=' -lva-x11'
EXTRA_LIBS+=' -lva-x11'