Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
fadde9f5bd06
Commit
1189043d
authored
Apr 22, 2014
by
a1ex
Browse files
5D3-123: undo
2d0fb63dad84
--HG-- branch : 5D3-123
parent
72846f0bc65b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bmp.c
View file @
fadde9f5
...
...
@@ -676,16 +676,7 @@ getfilesize_fail:
void
clrscr
()
{
BMP_LOCK
(
/* 5D3-123 quirk: YUV422 RAM is not initialized until going to LiveView or Playback mode
* (and even there, you need a valid image first)
* Workaround: if YUV422 was not yet initialized by Canon, fill with black, otherwise use transparent color
*
* The code is generic, shouldn't cause harm on other cameras.
*/
int
color
=
(
get_yuv422_vram
()
->
vram
)
?
0
:
COLOR_BLACK
;
bmp_fill
(
color
,
BMP_W_MINUS
,
BMP_H_MINUS
,
BMP_TOTAL_WIDTH
,
BMP_TOTAL_HEIGHT
);
)
BMP_LOCK
(
bmp_fill
(
0x0
,
BMP_W_MINUS
,
BMP_H_MINUS
,
BMP_TOTAL_WIDTH
,
BMP_TOTAL_HEIGHT
);
)
}
#if 0
...
...
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