Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Sep 12, 2024
1 parent b0188e2 commit 24c3945
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/burn/devices/vdc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ static INT32 vdc_raster_count[2];
static INT32 vdc_satb_countdown[2];

UINT16 *vdc_tmp_draw; // allocate externally!
UINT16 *vdc_linebuf; // allocated here, a single line
UINT8 vce_clock_list[263];
UINT16 vce_width_list[263];
static UINT16 *vdc_linebuf; // allocated here, a single line
static UINT8 vce_clock_list[263];
static UINT16 vce_width_list[263];

static UINT16 vpc_priority;
static UINT16 vpc_window1;
Expand Down Expand Up @@ -1079,14 +1079,14 @@ void sgx_interrupt()
vdc_advance_line( 1 );
}

UINT16 get_overscan(UINT16 &clock, UINT32 width)
static UINT16 get_overscan(UINT16 &clock, UINT32 width)
{
// if the clockscaled screen doesn't fit, center it
if (nScreenWidth < 1024) clock = 1; // custom resolution, default clock
if (nScreenWidth < 1024) clock = 1; // custom resolution, default clock to 1
UINT32 w = clock * width;
if (w < nScreenWidth) {
w = nScreenWidth - w;
w = (w / 2)
w = (w / 2);
} else {
w = 0;
}
Expand Down
2 changes: 0 additions & 2 deletions src/burn/devices/vdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ UINT8 vpc_read(UINT8 offset);

// palette
#define PCE_LINE 1368
extern UINT8 vce_clock_list[263]; // clock rate for each line

UINT16 *vdc_get_line(UINT32 y);
INT32 vce_linecount();
void vce_reset();
Expand Down

0 comments on commit 24c3945

Please sign in to comment.