Date:2013-01-31 02:07:31 (11 years 1 month ago)
Author:Werner Almesberger
Commit:0925b0f060401ee2335c9cf60acced2a53c9e742
Message:ubb-la/gui.c: add section titles and reorder some of the functions

Files: ubb-la/gui.c (4 diffs)

Change Details

ubb-la/gui.c
4545static SDL_Surface *surf;
4646
4747
48/* ----- SDL initialization and screen-wide functions ---------------------- */
49
50
4851void gui_init(void)
4952{
5053    if (SDL_Init(SDL_INIT_VIDEO) < 0) {
...... 
7073}
7174
7275
76static void update(void)
77{
78    SDL_UnlockSurface(surf);
79    SDL_UpdateRect(surf, 0, 0, 0, 0);
80}
81
82
83/* ----- Waveform elements ------------------------------------------------- */
84
85
7386static inline int ch_y(int ch, int v)
7487{
7588    return CH_YOFF+CH_SKIP*ch+(v ? 0 : CH_HEIGHT);
...... 
97110}
98111
99112
113/* ----- Show (part of) a buffer ------------------------------------------- */
114
115
100116static void show_buffer_zoom_in(const uint8_t *buf, int skip, int nibbles,
101117    int x0, int x1)
102118{
...... 
206222}
207223
208224
209static void update(void)
210{
211    SDL_UnlockSurface(surf);
212    SDL_UpdateRect(surf, 0, 0, 0, 0);
213}
225/* ----- Main event loop --------------------------------------------------- */
214226
215227
216228static int pos_step(int zoom)

Archive Download the corresponding diff file

Branches:
master



interactive