version update, fix vaapi spelling, zoom fixes 2019-11
authorGood Guy <good1.2guy@gmail.com>
Sat, 30 Nov 2019 20:33:36 +0000 (13:33 -0700)
committerGood Guy <good1.2guy@gmail.com>
Sat, 30 Nov 2019 20:33:36 +0000 (13:33 -0700)
13 files changed:
cinelerra-5.1/blds/PKGBUILD
cinelerra-5.1/blds/bld_prepare.sh
cinelerra-5.1/blds/cinelerra.spec
cinelerra-5.1/blds/debian/changelog
cinelerra-5.1/blds/debian/control
cinelerra-5.1/cinelerra/canvas.C
cinelerra-5.1/cinelerra/canvas.h
cinelerra-5.1/cinelerra/cpanel.C
cinelerra-5.1/cinelerra/cwindowgui.C
cinelerra-5.1/cinelerra/cwindowgui.h
cinelerra-5.1/cinelerra/vwindowgui.C
cinelerra-5.1/cinelerra/zwindowgui.C
cinelerra-5.1/configure.ac

index b70f7a2bd233fecb3b9d45ad9876840ebe2798a3..ee437220638d2fae6dc3bf78aa074760cd555f29 100644 (file)
@@ -1,7 +1,7 @@
 # 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"
index 0064bdfb758268661c3600fe99afa780a973b807..61e0950068cca20b950624f52daec53ca37df4dc 100755 (executable)
@@ -35,9 +35,9 @@ case "$dir" in
     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 \
index cc2ce3795fdbfdf9e76b5fc2e766110168972ceb..6b36719525c0cacb456d679e818f2085dc4e2008 100644 (file)
@@ -1,4 +1,4 @@
-%define ver 20191031
+%define ver 20191130
 %define cin cinelerra
 Summary: Multimedia Editing and construction
 
index 586a0f69db9d67808232a880fc9ff15db433459d..7f6529e73a369b484a742a30ee9c05cba0a98598 100644 (file)
@@ -1,4 +1,4 @@
-cin (1:5.1.20191031) unstable; urgency=low
+cin (1:5.1.20191130) unstable; urgency=low
 
   [ guy goode ]
 
index fc7378357a4f1a8d67fcbc8c4fb1c53037579a02..5f08a0a5f5266d8b043f64bb564d7b78182dfd60 100644 (file)
@@ -1,7 +1,7 @@
 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:
index e3e1b0f3381d2d826fe1a16f7b3aa7ce0df1ce05..17d5a42b5e952de5b515ccdc1650bde8e76b2484 100644 (file)
@@ -692,19 +692,17 @@ int Canvas::button_press_event_base(BC_WindowBase *caller)
 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;
 }
 
@@ -931,7 +929,7 @@ int CanvasSubWindowItem::handle_event()
 {
 // 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;
 }
 
@@ -1115,7 +1113,7 @@ CanvasFullScreenItem::CanvasFullScreenItem(Canvas *canvas)
 }
 int CanvasFullScreenItem::handle_event()
 {
-       canvas->set_fullscreen(1);
+       canvas->set_fullscreen(1, 1);
        return 1;
 }
 
index 1ea04448351575048d54faaa753a6b4c85a9db88..6b336052ae5c7b46613e85170c81e17f179bfb40 100644 (file)
@@ -80,7 +80,7 @@ public:
        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);
index 4099397ed5361176bb10e622a69102fd69a46b49..5f8dd4d7c048ba179266cc81b2f30bc950219284 100644 (file)
@@ -132,6 +132,7 @@ void CPanel::set_operation(int value)
            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);
index 567c9338c8f129dbd95995eae96831b6c70e88ef..22e977bdf3b3ef28e973f726f8bb748c386a5229 100644 (file)
@@ -442,12 +442,13 @@ int CWindowGUI::keypress_event()
                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':
@@ -999,19 +1000,19 @@ void CWindowCanvas::update_zoom(int x, int y, float zoom)
        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();
index f58ac69afef076cd4e8de14a1755288ee48ca008..7dbfde86142c4d7e9157965069eade20b1fec116 100644 (file)
@@ -319,7 +319,7 @@ public:
        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);
index 7c1d51e0a0df80a702a4fd34d5cc526055f4eed1..9c29ec997890eb21bcdd92ec752cc1365a2ba26b 100644 (file)
@@ -363,11 +363,12 @@ int VWindowGUI::keypress_event()
        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:
index 62bcb93e17e58d76747ced7436a3b137089feb7f..b6cccd03f82352ce4f285a98ccc267bf754f644e 100644 (file)
@@ -98,11 +98,12 @@ int ZWindowGUI::keypress_event()
        }
        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();
index 4906c23794dfc509237bf073ee68fcf4e0c6219c..4c1b8f074cae3cd6199f00493946a1ca0a867fa1 100644 (file)
@@ -611,7 +611,7 @@ if test "x$HAVE_VAAPI" = "xyes" -a "x$WANT_VAAPI" != "xno"; then
   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])
@@ -915,7 +915,7 @@ FFMPEG_EXTRA_LDFLAGS=""
 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'