summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 03:38:08 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 03:38:08 -0300
commitb710a5cbfa013f72c91b877f3ba9e613dba92fd6 (patch)
tree6f94ca98fe7fec0e913cdc87061b32aa97520831 /gui
parent27db8bf8302941b0f4379e1639618673f8d19c11 (diff)
downloadeeshow-b710a5cbfa013f72c91b877f3ba9e613dba92fd6.tar.gz
eeshow-b710a5cbfa013f72c91b877f3ba9e613dba92fd6.tar.bz2
eeshow-b710a5cbfa013f72c91b877f3ba9e613dba92fd6.zip
gui/render.c (render_delta): we had old/new drawing order reversed
This resulted in red being drawn over green, instead of the other way around.
Diffstat (limited to 'gui')
-rw-r--r--gui/render.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/render.c b/gui/render.c
index 6db6739..5abf364 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -286,7 +286,7 @@ void render_delta(struct gui *gui)
sch_b = alloc_type(struct sheet);
sch_ab = alloc_type(struct sheet);
- delta(a->sch, b->sch, sch_a, sch_b, sch_ab);
+ delta(a->sch, b->sch, sch_b, sch_a, sch_ab);
gui->delta_a.sch = sch_a,
gui->delta_b.sch = sch_b,
gui->delta_ab.sch = sch_ab,
@@ -299,12 +299,12 @@ void render_delta(struct gui *gui)
render_sheet(&gui->delta_ab);
cro_color_override(gfx_user(gui->delta_ab.gfx), COLOR_LIGHT_GREY);
- cro_color_override(gfx_user(gui->delta_b.gfx), COLOR_RED);
- cro_color_override(gfx_user(gui->delta_a.gfx), COLOR_GREEN2);
+ cro_color_override(gfx_user(gui->delta_a.gfx), COLOR_RED);
+ cro_color_override(gfx_user(gui->delta_b.gfx), COLOR_GREEN2);
cro_color_override(gfx_user(gui->delta_ab.gfx_extra), COLOR_LIGHT_GREY);
- cro_color_override(gfx_user(gui->delta_b.gfx_extra), COLOR_RED);
- cro_color_override(gfx_user(gui->delta_a.gfx_extra), COLOR_GREEN2);
+ cro_color_override(gfx_user(gui->delta_a.gfx_extra), COLOR_RED);
+ cro_color_override(gfx_user(gui->delta_b.gfx_extra), COLOR_GREEN2);
// @@@ clean up when leaving sheet
#endif