diff options
author | 2019-06-06 06:40:08 +0200 | |
---|---|---|
committer | 2019-06-06 06:42:11 +0200 | |
commit | f4df5549a8c2de5e9302c5fe85fe0df7a37a615d (patch) | |
tree | 02703c8d1041be945c80093c99822629feed80f0 /src/devices/bus/gio64/newport.h | |
parent | 5a4df14bb10ac169cccadd1c6b646cf5ddc8c7ef (diff) |
-newport: Various fixes. [Ryan Holtz]
* Fixed line drawing to not cause sa hang in certain cases.
* Fixed color iterator reload behavior.
* Fixed color iterator clamping behavior.
Diffstat (limited to 'src/devices/bus/gio64/newport.h')
-rw-r--r-- | src/devices/bus/gio64/newport.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/devices/bus/gio64/newport.h b/src/devices/bus/gio64/newport.h index b9738328e26..3971411d13c 100644 --- a/src/devices/bus/gio64/newport.h +++ b/src/devices/bus/gio64/newport.h @@ -184,10 +184,14 @@ protected: uint32_t m_color_alpha; uint32_t m_color_green; uint32_t m_color_blue; - uint32_t m_slope_red; - uint32_t m_slope_alpha; - uint32_t m_slope_green; - uint32_t m_slope_blue; + uint32_t m_curr_color_red; + uint32_t m_curr_color_alpha; + uint32_t m_curr_color_green; + uint32_t m_curr_color_blue; + int32_t m_slope_red; + int32_t m_slope_alpha; + int32_t m_slope_green; + int32_t m_slope_blue; uint32_t m_write_mask; uint32_t m_color_i; uint32_t m_zero_overflow; @@ -275,7 +279,7 @@ protected: int16_t incry2; uint8_t loop; }; - uint8_t get_octant(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t dx, uint16_t dy); + uint8_t get_octant(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t dx, int32_t dy); void do_fline(uint32_t color); void do_iline(uint32_t color); |