1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 20:14:04 +02:00

eeeshow/gui-aoi.c (aoi_down): don't accept click on non-clickable AoI

This commit is contained in:
Werner Almesberger 2016-08-16 00:19:23 -03:00
parent b67f6b9a96
commit 0d975a57d0

View File

@ -146,6 +146,10 @@ bool aoi_down(const struct aoi *aois, int x, int y)
clicked = find_aoi(aois, x, y);
if (!clicked)
return 0;
if (!clicked->click) {
clicked = NULL;
return 0;
}
clicked_x = x;
clicked_y = y;