Commit 4db16db0 authored by heyjoeway's avatar heyjoeway
Browse files

Partial fix for Android glitchiness

parent a60a3078
Pipeline #15746 passed with stages
in 1 minute and 58 seconds
......@@ -4212,9 +4212,18 @@ void window_clip(unsigned int data, unsigned int sw)
}
else
{
// Problem: window_clip is called as a function from the vdp so we can't
// really just re-call it if the number of columns gets changed
//
// Partial solution: If the number of user-selected columns is greater
// than 18 the added window clipping columns gets bumped up to 24.
// That way non-android users still get to play around with crazy wide
// resolutions but android users dont get screwed
int added_columns = config.h40_extra_columns > 18 ? 24 : 18;
/* Plane A takes up entire line */
clip[a].left = 0;
clip[a].right = sw + (24 / 2); // 24 = max number of extra columns
clip[a].right = sw + (added_columns / 2);
clip[a].enable = 1;
clip[w].enable = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment