Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jumpNrun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wise2023_jumpnrun
jumpNrun
Commits
630e3df3
Commit
630e3df3
authored
1 year ago
by
Michael
Browse files
Options
Downloads
Patches
Plain Diff
set font to 200 to make it less pixely
parent
adb43a48
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
menu2.c
+1
-10
1 addition, 10 deletions
menu2.c
with
1 addition
and
10 deletions
menu2.c
+
1
−
10
View file @
630e3df3
...
...
@@ -215,15 +215,6 @@ Nachb.: Das Spiel wird erneut gestartet, wenn y gedrückt wird. Wenn n gedrückt
*/
int
end_screen
(
SDL_Renderer
*
renderer
)
{
//Schriftart, -farbe und -groesse festesetzen
TTF_Font
*
font
=
TTF_OpenFont
(
"images/Go-Mono.ttf"
,
28
);
if
(
font
==
NULL
)
{
SDL_Log
(
"Schriftart konnte nicht geladen werden! SDL_ttf Error: %s
\n
"
,
TTF_GetError
());
return
-
1
;
}
if
(
SDL_SetRenderDrawColor
(
renderer
,
255
,
255
,
255
,
0
)
!=
0
)
{
SDL_Log
(
"Farbe konnte nicht gesetzt werden! SDL_Error %s
\n
"
,
SDL_GetError
());
return
(
-
1
);
...
...
@@ -242,7 +233,7 @@ int end_screen(SDL_Renderer* renderer) {
}
// Text ausgeben
SDL_Surface
*
surfaceMessage
=
TTF_RenderText_Blended_Wrapped
(
font
,
"Nochmal? (y)/(n)"
,
(
SDL_Color
)
{
255
,
255
,
255
,
255
},
200
);
SDL_Surface
*
surfaceMessage
=
TTF_RenderText_Blended_Wrapped
(
font
,
"Nochmal?
(y)/(n)"
,
(
SDL_Color
)
{
255
,
255
,
255
,
255
},
8
*
200
);
if
(
surfaceMessage
==
NULL
)
printf
(
"Text Surface loading failed: %s
\n
"
,
TTF_GetError
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment