View Issue Details

IDProjectCategoryView StatusLast Update
0000636Cinelerra-GG[All Projects] Featurepublic2023-06-06 17:37
ReporterPhyllisSmith Assigned ToPhyllisSmith  
PrioritylowSeverityminorReproducibilityhave not tried
Status acknowledgedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000636: Make size or type of node points configurable
DescriptionThe auto node point is sometimes hard to see. You can already change the color, but it would be nice to at least have a choice to make it one size bigger.
TagsNo tags attached.

Activities

Andrew-R

Andrew-R

2023-06-06 17:37

reporter   ~0005497

I guess we can at least put some comment in code saying "if you want bigger node point try to multiply HANDLE_W/HANDLE_H" (otherwise we forgot how to do it!)
PhyllisSmith

PhyllisSmith

2023-02-28 01:20

manager   ~0005463

@Andrew-R
This solution worked very well. AVLinux does not do builds though so now that I know where to look, maybe I can come up with something for his use.
Andrew-R

Andrew-R

2023-02-27 21:29

reporter   ~0005462

So, I looked into code....

cinelerra-5.1/cinelerra/trackcanvas.C

function

void TrackCanvas::draw_auto(Auto *current, int x, int y,
                int center_pixel, int data_h)
{
        int x1, y1, x2, y2;
        x1 = x - HANDLE_W / 2;
        x2 = x + HANDLE_W / 2;
        y1 = center_pixel + y - HANDLE_W / 2;
        y2 = center_pixel + y + HANDLE_W / 2;

        if( y1 < center_pixel - data_h/2 ) y1 = center_pixel - data_h/2;
        if( y2 > center_pixel + data_h/2 ) y2 = center_pixel + data_h/2;

        draw_box(x1, y1, x2 - x1, y2 - y1);
}

HANDLE_W defined in trackcanvas.inc as

#define HANDLE_W xS(8)
#define HANDLE_H yS(8)

so I guess it already scale-able with gui scale setting, just not independently?

Anyway, you can try to * (multiply) this specific use oh HANDLE_W (*2 for example) in this specific function and see if it works as intended? May be other mouseclicking functions in same file will need same enlargement, too

Issue History

Date Modified Username Field Change
2023-02-26 15:54 PhyllisSmith New Issue
2023-02-27 21:29 Andrew-R Note Added: 0005462
2023-02-28 01:20 PhyllisSmith Assigned To => PhyllisSmith
2023-02-28 01:20 PhyllisSmith Status new => acknowledged
2023-02-28 01:20 PhyllisSmith Note Added: 0005463
2023-06-06 17:37 Andrew-R Note Added: 0005497