Date: | 2013-01-31 18:47:08 (10 years 8 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 709506e6d6e35b617f8db647778478f351030902 |
Message: | ubb-la/gui.c (show_map): fix calculation of middle point Also here, we need to take into account that "pos" is zero-based. |
Files: |
ubb-la/gui.c (1 diff) |
Change Details
ubb-la/gui.c | ||
---|---|---|
175 | 175 | static void show_map(int skip, int nibbles, int s0, int s1) |
176 | 176 | { |
177 | 177 | int w = nibbles-skip; |
178 | int m = (nibbles+skip) >> 1; | |
178 | int m = (nibbles-skip) >> 1; | |
179 | 179 | int scale = 0; |
180 | 180 | int x0, x1; |
181 | 181 |
Branches:
master