1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-28 18:10:16 +02:00

gui.c (change_world): don't change color of the active frame

We're re-creating all the frames anyway (*), so why was this there ?
(*) And if we don't, which will happen in the near future, that's even
    worse.
This commit is contained in:
Werner Almesberger 2015-01-09 01:56:53 -03:00
parent 73389fba76
commit 809e8142b5

1
gui.c
View File

@ -348,7 +348,6 @@ void change_world(void)
instantiate(); instantiate();
} }
after = inst_get_bbox(NULL); after = inst_get_bbox(NULL);
label_in_box_bg(active_frame->label, COLOR_FRAME_SELECTED);
do_build_frames(); do_build_frames();
if (after.min.x < before.min.x || after.min.y < before.min.y || if (after.min.x < before.min.x || after.min.y < before.min.y ||
after.max.x > before.max.x || after.max.y > before.max.y) after.max.x > before.max.x || after.max.y > before.max.y)