Timing is correct now! Forgot to update samples_per_tick when parsing the 0xf effect.
[pineappletracker.git] / sdl_gui.h
blob04210ce673b7d12a829a58824cdd6e800107d710
1 /*
2 * (C) David Olofson, 2006
3 * modified by the pineapple team, 2009
4 */
6 static void breakhandler(int a);
7 static void handle_key_normal(SDL_Event *ev);
9 /*
10 * Low level GUI stuff
13 /* Load and convert image */
14 SDL_Surface *gui_load_image(const char *fn);
15 static void draw_main();
17 /* Add a dirtyrect */
18 //void gui_dirty(SDL_Rect *r);
20 /* Update all dirty areas */
21 void gui_refresh(void);
23 /* Draw a hollow box */
24 void gui_box(int x, int y, int w, int h, Uint32 c, SDL_Surface *dst);
26 /* Draw a black box with a colored outline */
27 void gui_bar(int x, int y, int w, int h, Uint32 c, SDL_Surface *dst);
29 /* Render text */
30 void gui_text(int x, int y, const char *txt, SDL_Surface *dst);
32 /* Render an oscilloscope */
33 //void gui_oscilloscope(Sint32 *buf, int bufsize,
34 // int start, int x, int y, int w, int h,
35 // SDL_Surface *dst);
38 * High level GUI stuff
40 int gui_open(SDL_Surface *screen);
41 void gui_close(void);
44 void gui_tempo(int v);
45 void gui_songpos(int v);
46 void gui_songedit(int pos, int ppos, int track, int editing);
47 void gui_songselect(int x1, int y1, int x2, int y2);
48 void gui_status(int playing, int editing, int looping);
49 void gui_message(const char *message, int curspos);
50 void gui_draw_activity(int dt);
51 void gui_activity(int trk);
53 void gui_draw_screen(GUI_pages page);*/
54 //static void update_main(SDL_Surface *screen);