diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/test.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/test/test.c b/src/test/test.c index 6a4820d..30d2952 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -67,12 +67,16 @@ int main(void) #undef X /* Fill gamma ramps, for each depth, with the CRTC:s current ramps. */ -#define X(R) \ - libgamma_crtc_get_gamma_##R(crtc_state, &old_##R); \ - if ((rr |= r = libgamma_crtc_get_gamma_##R(crtc_state, &R))) \ - { \ - libgamma_perror("libgamma_crtc_get_gamma_" #R, r); \ - goto done; \ +#define X(R) \ + if ((rr |= r = libgamma_crtc_get_gamma_##R(crtc_state, &old_##R))) \ + { \ + libgamma_perror("libgamma_crtc_get_gamma_" #R, r); \ + goto done; \ + } \ + if ((rr |= r = libgamma_crtc_get_gamma_##R(crtc_state, &R))) \ + { \ + libgamma_perror("libgamma_crtc_get_gamma_" #R, r); \ + goto done; \ } LIST_RAMPS #undef X |