diff options
author | Aaron Giles <aaron@aarongiles.com> | 2011-12-31 07:52:26 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2011-12-31 07:52:26 +0000 |
commit | 9cae38e0d82a71a20619c5ba49dce4eaa0bb0cc2 (patch) | |
tree | 56135caff0d5610acb3b1fc34b640853fe27b104 /src/tools | |
parent | 384b14a64b7e2a732b9b3429fc6d7aa443486c6c (diff) |
Converted bitmap_t and rectangle into proper classes. Replaced BITMAP_ADDR*
macros with bitmap->pix* functions, and moved bitmap_fill() to bitmap->fill()
among other similar changes. Bitmap fields now only available via accessors.
Replaced sect_rect with &= and union_rect with |= operators for rectangle
classes. Some general cleanup as a result of these changes. [Aaron Giles]
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/ldverify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/ldverify.c b/src/tools/ldverify.c index f7dd152f277..eead12de0bd 100644 --- a/src/tools/ldverify.c +++ b/src/tools/ldverify.c @@ -526,11 +526,11 @@ static void verify_video(video_info *video, int frame, bitmap_t *bitmap) { for (x = 16; x < 720 - 16; x++) { - yhisto[*BITMAP_ADDR16(bitmap, y, x) >> 8]++; + yhisto[bitmap->pix16(y, x) >> 8]++; if (x % 2 == 0) - cbhisto[*BITMAP_ADDR16(bitmap, y, x) & 0xff]++; + cbhisto[bitmap->pix16(y, x) & 0xff]++; else - crhisto[*BITMAP_ADDR16(bitmap, y, x) & 0xff]++; + crhisto[bitmap->pix16(y, x) & 0xff]++; } pixels += 720 - 16 - 16; } |