No, it's really overkill and you may not release it properly later.
Just use static structure for that:
Code: Select all
Line line;
line.pt1.x =0;
line.pt1.y =0;
line.pt2.x =100;
line.pt2.y =100;
line.col=10;
BMP_drawLine(&line);
No, it's really overkill and you may not release it properly later.
Code: Select all
Line line;
line.pt1.x =0;
line.pt1.y =0;
line.pt2.x =100;
line.pt2.y =100;
line.col=10;
BMP_drawLine(&line);
Code: Select all
var = (var & 0xF0FF) | 0x0300;