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=03fa86e6dc495f9444ae14dad401b1ad6de793fe;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 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"); }