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
175175static void show_map(int skip, int nibbles, int s0, int s1)
176176{
177177    int w = nibbles-skip;
178    int m = (nibbles+skip) >> 1;
178    int m = (nibbles-skip) >> 1;
179179    int scale = 0;
180180    int x0, x1;
181181

Archive Download the corresponding diff file

Branches:
master



interactive