Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Katya Firstova
assignment-3-image-rotation
Commits
1149d3a2
Commit
1149d3a2
authored
2 years ago
by
Katya Firstova
Browse files
Options
Download
Email Patches
Plain Diff
Update solution/src/bmp.c
parent
a2f487e6
master
No related merge requests found
Pipeline
#44324
passed with stages
in 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
solution/src/bmp.c
solution/src/bmp.c
+3
-2
No files found.
solution/src/bmp.c
View file @
1149d3a2
...
...
@@ -111,7 +111,7 @@ enum write_status to_bmp(FILE *out, struct image const* image) {
for
(
size_t
k
=
0
;
k
<
4
-
((
image
->
width
*
3
)
%
4
);
k
++
){
if
(
fwrite
(
&
zero
,
sizeof
(
int8_t
),
1
,
out
)
==
0
)
{
return
WRITE_FWRITE_ERROR
;
}
}
}
}
...
...
@@ -120,7 +120,8 @@ enum write_status to_bmp(FILE *out, struct image const* image) {
}
return
WRITE_OK
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help