mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-22 15:29:58 +00:00
videoctrl: Rename get_palette_color.
So it matches set_palette_color.
This commit is contained in:
parent
ad8a26616f
commit
1b147151f0
@ -233,8 +233,8 @@ uint32_t ATIRage::read_reg(uint32_t reg_offset, uint32_t size) {
|
||||
case ATI_DAC_DATA:
|
||||
if (!this->comp_index) {
|
||||
uint8_t alpha; // temp variable for unused alpha
|
||||
get_palette_colors(this->dac_rd_index, color_buf[0],
|
||||
color_buf[1], color_buf[2], alpha);
|
||||
get_palette_color(this->dac_rd_index, color_buf[0],
|
||||
color_buf[1], color_buf[2], alpha);
|
||||
}
|
||||
insert_bits<uint64_t>(result, color_buf[this->comp_index], 8, 8);
|
||||
if (++this->comp_index >= 3) {
|
||||
|
@ -114,7 +114,7 @@ void VideoCtrlBase::stop_refresh_task() {
|
||||
}
|
||||
}
|
||||
|
||||
void VideoCtrlBase::get_palette_colors(uint8_t index, uint8_t& r, uint8_t& g,
|
||||
void VideoCtrlBase::get_palette_color(uint8_t index, uint8_t& r, uint8_t& g,
|
||||
uint8_t& b, uint8_t& a)
|
||||
{
|
||||
b = this->palette[index] & 0xFFU;
|
||||
|
@ -45,8 +45,8 @@ public:
|
||||
void start_refresh_task();
|
||||
void stop_refresh_task();
|
||||
|
||||
void get_palette_colors(uint8_t index, uint8_t& r, uint8_t& g, uint8_t& b,
|
||||
uint8_t& a);
|
||||
void get_palette_color(uint8_t index, uint8_t& r, uint8_t& g, uint8_t& b,
|
||||
uint8_t& a);
|
||||
void set_palette_color(uint8_t index, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
||||
|
||||
// HW cursor support
|
||||
|
Loading…
Reference in New Issue
Block a user