From 3d4e62d3c9781649ef5ea01825fd5c686e63379c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 26 Mar 2009 20:22:36 +0100 Subject: style --- src/OutputImage.cxx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/OutputImage.cxx') diff --git a/src/OutputImage.cxx b/src/OutputImage.cxx index 04ee471..dd14fc6 100644 --- a/src/OutputImage.cxx +++ b/src/OutputImage.cxx @@ -1,5 +1,5 @@ // -// Copyright 2006 Johannes Hofmann +// Copyright 2006-2009 Johannes Hofmann // // This software may be used and distributed according to the terms // of the GNU General Public License, incorporated herein by reference. @@ -27,28 +27,25 @@ OutputImage::init(int w1, int h1) { int OutputImage::set_pixel(int x, int r, int g, int b) { - if (!initialized || x < 0 || x >= W) { + if (!initialized || x < 0 || x >= W) return 1; - } else { + else return set_pixel_internal(x, r, g, b); - } } int OutputImage::next_line() { - if (!initialized || line++ >= H) { + if (!initialized || line++ >= H) return 1; - } else { + else return next_line_internal(); - } } int OutputImage::done() { - if (!initialized) { + if (!initialized) return 1; - } else { + else next_line(); return done_internal(); - } } -- cgit v1.2.3