mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
hp9845.cpp: fix MSVC build (nw)
This commit is contained in:
parent
5420e35248
commit
203f2b1d54
@ -1488,9 +1488,9 @@ void hp9845ct_state::draw_line(unsigned x0 , unsigned y0 , unsigned x1 , unsigne
|
||||
// draw line, vector generator uses Bresenham's algorithm
|
||||
x = x0;
|
||||
y = y0;
|
||||
dx = abs(x1 - x);
|
||||
dx = abs((int) (x1 - x));
|
||||
sx = x < x1 ? 1 : -1; // actually always 1 because of normalization
|
||||
dy = abs(y1 - y);
|
||||
dy = abs((int) (y1 - y));
|
||||
sy = y < y1 ? 1 : -1;
|
||||
err = (dx > dy ? dx : -dy) / 2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user