X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fplaybackprefs.C;h=cadec09d5fcd8f0c583922451c4056f27fee26de;hb=3c357d8bcdb855ea71487d2b2b6e518bf8a493f6;hp=16e69289e596e38d26ddcd15bdf25712defd9d3b;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/playbackprefs.C b/cinelerra-5.1/cinelerra/playbackprefs.C index 16e69289..cadec09d 100644 --- a/cinelerra-5.1/cinelerra/playbackprefs.C +++ b/cinelerra-5.1/cinelerra/playbackprefs.C @@ -205,32 +205,11 @@ SET_TRACE if(!pwindow->thread->edl->session->interpolate_raw) white_balance_raw->disable(); - -SET_TRACE -// y += 30; -// add_subwindow(new PlaybackDeblock(pwindow, 10, y)); - - x2 = x; - x += 370; - title1 = new BC_Title(x, y, _("Timecode offset:"), MEDIUMFONT); - add_subwindow(title1); x += title1->get_w(); - for( int i=3;;) { - sprintf(string, "%d", pwindow->thread->edl->session->timecode_offset[i]); - TimecodeOffset *tcofs = new TimecodeOffset(x, y, pwindow, this, string, i); - add_subwindow(tcofs); x += tcofs->get_w(); - if( --i < 0 ) break; - title1 = new BC_Title(x, y, ":", MEDIUMFONT); - add_subwindow(title1); x += title1->get_w(); - } - - x = x2; y += white_balance_raw->get_h() + 5; add_subwindow(vdevice_title = new BC_Title(x, y, _("Video Driver:"))); video_device = new VDevicePrefs(x + vdevice_title->get_w() + 10, y, pwindow, this, playback_config->vconfig, 0, MODEPLAY); video_device->initialize(0); -SET_TRACE - } @@ -504,18 +483,3 @@ int PlaybackGain::handle_event() return 1; } -TimecodeOffset::TimecodeOffset(int x, int y, PreferencesWindow *pwindow, - PlaybackPrefs *playback, char *text, int unit) - : BC_TextBox(x, y, 30, 1, text) -{ - this->pwindow = pwindow; - this->playback = playback; - this->unit = unit; -} - -int TimecodeOffset::handle_event() -{ - pwindow->thread->edl->session->timecode_offset[unit] = atol(get_text()); - return 1; -} -