diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-26 20:22:36 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-26 20:22:36 +0100 |
commit | 3d4e62d3c9781649ef5ea01825fd5c686e63379c (patch) | |
tree | d1b2c148f480d0104c056781c49b234ff547e14e /src/OutputImage.cxx | |
parent | eb72978eb28008f677145dbeb1b3090ed47a5b19 (diff) |
style
Diffstat (limited to 'src/OutputImage.cxx')
-rw-r--r-- | src/OutputImage.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
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 <Johannes.Hofmann@gmx.de> +// Copyright 2006-2009 Johannes Hofmann <Johannes.Hofmann@gmx.de> // // 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(); - } } |