Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Genesis Plus Gx Wide
Commits
4db16db0
Commit
4db16db0
authored
Feb 27, 2021
by
heyjoeway
Browse files
Partial fix for Android glitchiness
parent
a60a3078
Pipeline
#15746
passed with stages
in 1 minute and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/vdp_render.c
View file @
4db16db0
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment