diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-18 16:21:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-10 07:03:27 -0800 |
commit | 50424df65311d2226bc4f221b9c2f3fa5d965ed3 (patch) | |
tree | e595b31357b3c8a768e8ecead977eaec57a89c23 /display.h | |
parent | 77da20196f3efe8eaf4a7bd898f0c6206d146c61 (diff) | |
download | subsurface-50424df65311d2226bc4f221b9c2f3fa5d965ed3.tar.gz |
Use 'struct membuffer' for profile info string generation
The profile info was generated using nasty string concatenation that the
membuffers are much better at anyway. And membuffers don't need those
arbitrarily sized fixed buffers (500 bytes? Why 500 bytes?).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5,6 +5,8 @@ extern "C" { #endif +struct membuffer; + #define SCALE_SCREEN 1.0 #define SCALE_PRINT (1.0 / get_screen_dpi()) @@ -39,7 +41,7 @@ struct graphics_context { typedef enum { SC_SCREEN, SC_PRINT } scale_mode_t; extern struct divecomputer *select_dc(struct divecomputer *main); -extern void get_plot_details(struct graphics_context *gc, int time, char *buf, int bufsize); +extern void get_plot_details(struct graphics_context *gc, int time, struct membuffer *mb); struct options { enum { PRETTY, TABLE, TWOPERPAGE } type; |