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
41403d09
Commit
41403d09
authored
Feb 20, 2025
by
Ильин Владимир Александрович
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commiting working state
parent
b9f4743d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
mouse.o
build/mouse.o
+0
-0
mandelbrot
mandelbrot
+0
-0
mandelbrot.c
src/mandelbrot.c
+3
-2
mouse.c
src/mouse.c
+1
-0
No files found.
build/mouse.o
View file @
41403d09
No preview for this file type
mandelbrot
View file @
41403d09
No preview for this file type
src/mandelbrot.c
View file @
41403d09
...
...
@@ -121,8 +121,10 @@ render_cl(Array *arr, App *app, ViewInfo view) {
arr
->
pointer
=
realloc
(
arr
->
pointer
,
app
->
win_height
*
app
->
win_width
*
sizeof
(
Color
));
arr
->
size
=
app
->
win_height
*
app
->
win_width
*
sizeof
(
Color
);
}
if
(
app
->
needs_recalc
)
if
(
app
->
needs_recalc
)
{
calculate_set
(
arr
,
app
->
win_height
,
app
->
win_width
,
view
);
app
->
needs_recalc
=
0
;
}
update_texture
(
app
,
arr
);
...
...
@@ -271,7 +273,6 @@ main(void)
render_ui
(
&
ui
,
app
.
renderer
,
view
,
fps
);
SDL_RenderPresent
(
app
.
renderer
);
app
.
needs_recalc
=
0
;
}
//SDL_FreeSurface(app.surfaceA);
free
(
screen
.
pointer
);
...
...
src/mouse.c
View file @
41403d09
...
...
@@ -10,6 +10,7 @@ handle_mouse(SDL_Event event, Mouse* mouse, ViewInfo* view) {
mouse
->
start_x
=
event
.
button
.
x
;
mouse
->
start_y
=
event
.
button
.
y
;
mouse
->
original_view
=
*
view
;
needs_recalc
=
1
;
}
break
;
...
...
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