videoctrl: Rename get_palette_color.

So it matches set_palette_color.
This commit is contained in:
joevt 2024-02-18 02:20:25 -08:00 committed by dingusdev
parent ad8a26616f
commit 1b147151f0
3 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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;

View File

@ -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