Commit 6047113e authored by mercury233's avatar mercury233 Committed by GitHub

fix scale below 0 (#374)

parent e89c55b8
......@@ -1110,6 +1110,8 @@ uint32 card::get_lscale() {
temp.lscale = lscale;
}
lscale += up + upc;
if(lscale < 0 && current.pzone)
lscale = 0;
temp.lscale = 0xffffffff;
return lscale;
}
......@@ -1137,6 +1139,8 @@ uint32 card::get_rscale() {
temp.rscale = rscale;
}
rscale += up + upc;
if(rscale < 0 && current.pzone)
rscale = 0;
temp.rscale = 0xffffffff;
return rscale;
}
......
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