Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mandelbrot-explorer
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ильин Владимир Александрович
mandelbrot-explorer
Commits
68dcd590
Commit
68dcd590
authored
Feb 18, 2025
by
Ильин Владимир Александрович
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui improvments
parent
25a97383
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ui.o
build/ui.o
+0
-0
mandelbrot
mandelbrot
+0
-0
mandelbrot.h
src/mandelbrot.h
+1
-1
ui.c
src/ui.c
+3
-3
No files found.
build/ui.o
View file @
68dcd590
No preview for this file type
mandelbrot
View file @
68dcd590
No preview for this file type
src/mandelbrot.h
View file @
68dcd590
...
...
@@ -6,7 +6,7 @@
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
#define MAX_ITERATIONS
250
#define MAX_ITERATIONS
500
typedef
struct
{
double
real
;
...
...
src/ui.c
View file @
68dcd590
...
...
@@ -48,11 +48,11 @@ render_ui(UI* ui, SDL_Renderer* renderer, ViewInfo view, float fps)
SDL_RenderDrawRect
(
renderer
,
&
ui
->
fps_display
);
if
(
ui
->
font
)
{
char
buf
[
32
];
snprintf
(
buf
,
sizeof
(
buf
),
"Zoom
: %.2f
x"
,
view
.
zoom
);
char
buf
[
16
];
snprintf
(
buf
,
sizeof
(
buf
),
"Zoom
%.3g
x"
,
view
.
zoom
);
render_text
(
renderer
,
ui
->
font
,
buf
,
&
ui
->
zoom_display
);
snprintf
(
buf
,
sizeof
(
buf
),
"Fps
: %
f"
,
fps
);
snprintf
(
buf
,
sizeof
(
buf
),
"Fps
%.2
f"
,
fps
);
render_text
(
renderer
,
ui
->
font
,
buf
,
&
ui
->
fps_display
);
}
}
...
...
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