X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmaincursor.C;h=daf4eec11efe39873f7c752a245dcfde0df4ff0e;hp=4c3c559053da2ab36d448aaf79948b2d90203d07;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/cinelerra/maincursor.C b/cinelerra-5.1/cinelerra/maincursor.C index 4c3c5590..daf4eec1 100644 --- a/cinelerra-5.1/cinelerra/maincursor.C +++ b/cinelerra-5.1/cinelerra/maincursor.C @@ -126,9 +126,10 @@ void MainCursor::draw(int do_plugintoggles) mwindow->edl->session->sample_rate / zoom_sample - view_start)); - if(pixel1 < -10) pixel1 = -10; - if(pixel2 > pane->canvas->get_w() + 10) - pixel2 = pane->canvas->get_w() + 10; + int xs10 = xS(10); + if(pixel1 < -xs10) pixel1 = -xs10; + if(pixel2 > pane->canvas->get_w() + xs10) + pixel2 = pane->canvas->get_w() + xs10; if(pixel2 < pixel1) pixel2 = pixel1; //printf("MainCursor::draw 2\n"); }