Commit 1ebd8ecc authored by Fabian Frederick's avatar Fabian Frederick Committed by Tomi Valkeinen

video: fbdev: use swap() in ami_set_sprite()

Use kernel.h macro definition.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 889dbc17
...@@ -2052,7 +2052,7 @@ static void ami_set_sprite(const struct amifb_par *par) ...@@ -2052,7 +2052,7 @@ static void ami_set_sprite(const struct amifb_par *par)
{ {
copins *copl, *cops; copins *copl, *cops;
u_short hs, vs, ve; u_short hs, vs, ve;
u_long pl, ps, pt; u_long pl, ps;
short mx, my; short mx, my;
cops = copdisplay.list[currentcop][0]; cops = copdisplay.list[currentcop][0];
...@@ -2078,7 +2078,7 @@ static void ami_set_sprite(const struct amifb_par *par) ...@@ -2078,7 +2078,7 @@ static void ami_set_sprite(const struct amifb_par *par)
if (mod2(vs)) { if (mod2(vs)) {
lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve); lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve);
shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve + 1); shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve + 1);
pt = pl; pl = ps; ps = pt; swap(pl, ps);
} else { } else {
lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve + 1); lofsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs, hs, ve + 1);
shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve); shfsprite[1 << par->crsr.fmode] = spr2hw_ctl(vs + 1, hs, ve);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment