Skip to content

Commit

Permalink
Fix non-debug builds to compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Sep 3, 2023
1 parent c340222 commit 36c236f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hardware/vga_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6206,9 +6206,12 @@ static void VGA_VerticalTimer(Bitu /*val*/) {
}
}

#if C_DEBUG
bool IsDebuggerActive(void);
#endif

void VGA_DebugRedraw(void) {
#if C_DEBUG
if (IsDebuggerActive()) {
RENDER_EndUpdate(true);
vga.draw.lines_done = vga.draw.lines_total;
Expand All @@ -6220,6 +6223,7 @@ void VGA_DebugRedraw(void) {
VGA_VerticalTimer(0);
VGA_RenderOnDemandComplete();
}
#endif
}

void VGA_DebugOverrideStart(uint32_t ofs,bool sum) {
Expand Down

0 comments on commit 36c236f

Please sign in to comment.