diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-28 16:52:21 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-28 16:52:21 +0200 |
commit | 1f033e22d5a8e84b2cbcbf150eea4c6cccdc195a (patch) | |
tree | f7848bc6c0858aebc6e616bc05e398ceb933446b /src | |
parent | m fix (diff) | |
download | libgamma-1f033e22d5a8e84b2cbcbf150eea4c6cccdc195a.tar.gz libgamma-1f033e22d5a8e84b2cbcbf150eea4c6cccdc195a.tar.bz2 libgamma-1f033e22d5a8e84b2cbcbf150eea4c6cccdc195a.tar.xz |
m fix0.2
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/gamma-dummy.c.gpp | 2 | ||||
-rw-r--r-- | src/test/test.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/gamma-dummy.c.gpp b/src/lib/gamma-dummy.c.gpp index a7f3af9..a1ed937 100644 --- a/src/lib/gamma-dummy.c.gpp +++ b/src/lib/gamma-dummy.c.gpp @@ -608,7 +608,7 @@ int libgamma_dummy_crtc_restore(libgamma_crtc_state_t* restrict this) */ static int libgamma_dummy_crtc_restore_forced(libgamma_dummy_crtc_t* restrict data) { - size_t rn = data->info.blue_gamma_size; + size_t rn = data->info.red_gamma_size; size_t gn = data->info.green_gamma_size; size_t bn = data->info.blue_gamma_size; size_t i; diff --git a/src/test/test.c b/src/test/test.c index 8bb6183..51a4379 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -306,8 +306,8 @@ int main(void) else { n = ramps.red_size; - n = n < ramps.green_size ? n : ramps.green_size; - n = n < ramps.blue_size ? n : ramps.blue_size; + n = n > ramps.green_size ? n : ramps.green_size; + n = n > ramps.blue_size ? n : ramps.blue_size; printf("Current gamma ramps:\n"); for (i = 0; i < n; i++) { |