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
fa71a164
Unverified
Commit
fa71a164
authored
Nov 07, 2021
by
Libretro-Admin
Committed by
GitHub
Nov 07, 2021
Browse files
Merge pull request #16 from vladikcomper/main
Fix Plane B scrolling bug
parents
1797b6b0
12755667
Pipeline
#120596
passed with stages
in 24 minutes and 43 seconds
Changes
1
Pipelines
266
Show whitespace changes
Inline
Side-by-side
core/vdp_render.c
View file @
fa71a164
...
...
@@ -1529,9 +1529,9 @@ void render_bg_m5(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
yscroll
=
*
(
uint32
*
)
&
vsram
[
0
];
...
...
@@ -1704,9 +1704,9 @@ void render_bg_m5_vs(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
...
...
@@ -1921,9 +1921,9 @@ void render_bg_m5_im2(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
yscroll
=
*
(
uint32
*
)
&
vsram
[
0
];
...
...
@@ -2095,9 +2095,9 @@ void render_bg_m5_im2_vs(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
pf_col_mask
=
playfield_col_mask
;
...
...
@@ -2308,9 +2308,9 @@ void render_bg_m5(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
uint32
yscroll
=
*
(
uint32
*
)
&
vsram
[
0
];
...
...
@@ -2483,9 +2483,9 @@ void render_bg_m5_vs(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
uint32
yscroll
=
0
;
...
...
@@ -2700,9 +2700,9 @@ void render_bg_m5_im2(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
uint32
yscroll
=
*
(
uint32
*
)
&
vsram
[
0
];
...
...
@@ -2876,9 +2876,9 @@ void render_bg_m5_im2_vs(int line)
(
render_obj
==
render_obj_m5_im2_ste
)
||
(
render_obj
==
render_obj_m5_ste
)
)
{
xscroll
+
=
(
(
config
.
h40_extra_columns
*
4
)
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
xscroll
=
(
(
(
xscroll
+
config
.
h40_extra_columns
*
4
)
&
0xFFFF
)
+
((
xscroll
+
((
config
.
h40_extra_columns
*
4
)
<<
16
)
)
&
0xFFFF0000
)
);
}
uint32
yscroll
=
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