Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
spice
x11spice
Commits
37445f47
Commit
37445f47
authored
Apr 28, 2020
by
Frediano Ziglio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify computation of num_vertical_tiles
Signed-off-by:
Frediano Ziglio
<
freddy77@gmail.com
>
parent
4d367e33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/scan.c
src/scan.c
+4
-6
No files found.
src/scan.c
View file @
37445f47
...
...
@@ -322,9 +322,8 @@ static void scanner_periodic(scanner_t *scanner)
int
rc
;
g_mutex_lock
(
scanner
->
session
->
lock
);
num_vertical_tiles
=
scanner
->
session
->
display
.
fullscreen
->
h
/
NUM_SCANLINES
;
if
(
scanner
->
session
->
display
.
fullscreen
->
h
%
NUM_SCANLINES
)
num_vertical_tiles
++
;
num_vertical_tiles
=
(
scanner
->
session
->
display
.
fullscreen
->
h
+
NUM_SCANLINES
-
1
)
/
NUM_SCANLINES
;
int
tiles_changed_in_row
[
num_vertical_tiles
];
bool
tiles_changed
[
num_vertical_tiles
][
NUM_HORIZONTAL_TILES
];
...
...
@@ -357,9 +356,8 @@ static void scan_full_screen(scanner_t *scanner)
int
rc
;
g_mutex_lock
(
scanner
->
session
->
lock
);
num_vertical_tiles
=
scanner
->
session
->
display
.
fullscreen
->
h
/
NUM_SCANLINES
;
if
(
scanner
->
session
->
display
.
fullscreen
->
h
%
NUM_SCANLINES
)
num_vertical_tiles
++
;
num_vertical_tiles
=
(
scanner
->
session
->
display
.
fullscreen
->
h
+
NUM_SCANLINES
-
1
)
/
NUM_SCANLINES
;
int
tiles_changed_in_row
[
num_vertical_tiles
];
bool
tiles_changed
[
num_vertical_tiles
][
NUM_HORIZONTAL_TILES
];
...
...
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