Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PUAE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
PUAE
Commits
226404ac
Commit
226404ac
authored
Dec 21, 2010
by
GnoStiC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.1
parent
c589c8f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
22 deletions
+9
-22
sdlgfx.c
src/gfx-sdl/sdlgfx.c
+9
-22
No files found.
src/gfx-sdl/sdlgfx.c
View file @
226404ac
...
@@ -679,9 +679,7 @@ STATIC_INLINE void render_gl_buffer (const struct gl_buffer_t *buffer, int first
...
@@ -679,9 +679,7 @@ STATIC_INLINE void render_gl_buffer (const struct gl_buffer_t *buffer, int first
float
tx0
,
ty0
,
tx1
,
ty1
;
//source buffer coords
float
tx0
,
ty0
,
tx1
,
ty1
;
//source buffer coords
float
wx0
,
wy0
,
wx1
,
wy1
;
//destination text coords
float
wx0
,
wy0
,
wx1
,
wy1
;
//destination text coords
float
left_crop
,
right_crop
,
top_crop
,
bottom_crop
;
//buffer cropping
float
left_crop
,
right_crop
,
top_crop
,
bottom_crop
;
//buffer cropping
float
gfx_gl_x_offset
,
gfx_gl_y_offset
;
//buffer panning
float
amiga_real_w
,
amiga_real_h
;
//used to calulate cropping
float
amiga_real_w
,
amiga_real_h
;
//used to calulate cropping
float
gfx_gl_x_panscan
,
gfx_gl_y_panscan
;
//zoom in/out
float
bottomledspace
=
0
;
float
bottomledspace
=
0
;
last_line
++
;
last_line
++
;
...
@@ -690,45 +688,34 @@ STATIC_INLINE void render_gl_buffer (const struct gl_buffer_t *buffer, int first
...
@@ -690,45 +688,34 @@ STATIC_INLINE void render_gl_buffer (const struct gl_buffer_t *buffer, int first
if
(
currprefs
.
gfx_lores_mode
)
{
if
(
currprefs
.
gfx_lores_mode
)
{
amiga_real_w
=
362
;
amiga_real_w
=
362
;
gfx_gl_x_offset
=
(
float
)
currprefs
.
gfx_gl_x_offset
;
}
else
{
}
else
{
amiga_real_w
=
724
;
amiga_real_w
=
724
;
gfx_gl_x_offset
=
(
float
)
currprefs
.
gfx_gl_x_offset
*
2
;
}
}
if
(
currprefs
.
gfx_vresolution
)
{
if
(
currprefs
.
gfx_vresolution
)
{
amiga_real_h
=
568
;
amiga_real_h
=
568
;
gfx_gl_y_offset
=
(
float
)
currprefs
.
gfx_gl_y_offset
*
2
;
}
else
{
}
else
{
amiga_real_h
=
284
;
amiga_real_h
=
284
;
gfx_gl_y_offset
=
(
float
)
currprefs
.
gfx_gl_y_offset
;
}
}
if
((
current_width
>=
amiga_real_w
)
&&
(
current_height
>=
amiga_real_h
)
&&
(
!
screen_is_picasso
)
)
{
if
((
current_width
>=
amiga_real_w
)
&&
(
current_height
>=
amiga_real_h
)
&&
(
!
screen_is_picasso
)
)
{
gfx_gl_x_panscan
=
currprefs
.
gfx_gl_panscan
*
1
.
33
f
;
right_crop
=
(
current_width
-
amiga_real_w
);
gfx_gl_y_panscan
=
currprefs
.
gfx_gl_panscan
;
left_crop
=
0
;
bottom_crop
=
(
current_height
-
amiga_real_h
);
right_crop
=
(
current_width
-
amiga_real_w
)
+
gfx_gl_x_panscan
;
top_crop
=
0
;
left_crop
=
gfx_gl_x_panscan
;
bottom_crop
=
(
current_height
-
amiga_real_h
)
+
gfx_gl_y_panscan
;
top_crop
=
gfx_gl_y_panscan
;
bottom_crop
=
bottom_crop
-
bottomledspace
;
bottom_crop
=
bottom_crop
-
bottomledspace
;
bottom_crop_global
=
(
int
)
(
bottom_crop
-
gfx_gl_y_panscan
);
right_crop_global
=
(
int
)
(
right_crop
-
gfx_gl_x_panscan
);
}
else
{
}
else
{
right_crop
=
0
;
right_crop
=
0
;
left_crop
=
0
;
left_crop
=
0
;
bottom_crop
=
0
;
bottom_crop
=
0
;
top_crop
=
0
;
top_crop
=
0
;
gfx_gl_x_offset
=
0
;
gfx_gl_y_offset
=
0
;
}
}
if
(
have_texture_rectangles
)
{
if
(
have_texture_rectangles
)
{
tx0
=
left_crop
-
gfx_gl_x_offset
;
tx0
=
left_crop
;
tx1
=
(
float
)
buffer
->
width
-
right_crop
-
gfx_gl_x_offset
;
tx1
=
(
float
)
buffer
->
width
-
right_crop
;
ty0
=
(
float
)
first_line
+
top_crop
-
gfx_gl_y_offset
;
ty0
=
(
float
)
first_line
+
top_crop
;
ty1
=
(
float
)
last_line
-
bottom_crop
-
gfx_gl_y_offset
;
ty1
=
(
float
)
last_line
-
bottom_crop
;
}
else
{
}
else
{
tx0
=
0
.
0
f
;
tx0
=
0
.
0
f
;
ty0
=
(
float
)
first_line
/
(
float
)
buffer
->
texture_height
;
ty0
=
(
float
)
first_line
/
(
float
)
buffer
->
texture_height
;
...
...
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