control: Narrow the scope of local variable.

This commit is contained in:
joevt 2024-02-02 02:27:18 -08:00 committed by dingusdev
parent ca9657baf1
commit 9af1b1a720
1 changed files with 2 additions and 2 deletions

View File

@ -282,9 +282,9 @@ uint32_t ControlVideo::read(uint32_t rgn_start, uint32_t offset, int size)
return 0;
}
uint32_t value;
if (rgn_start == this->regs_base) {
uint32_t value;
switch (offset >> 4) {
case ControlRegs::CUR_LINE:
value = 0; // current active video line should relate this to refresh rate