summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-29 18:11:13 +0100
committerwm4 <wm4@nowhere>2014-02-02 20:02:40 +0100
commitda4af2b6d86491536b0999f5b731c30b13ff0ac9 (patch)
tree9b941ab8dba74b2804993fe1bd7aa2fe9063926d /libass/ass_bitmap.h
parent7514642f2575fd58c4f4809d74a0099f22d256f0 (diff)
downloadlibass-da4af2b6d86491536b0999f5b731c30b13ff0ac9.tar.bz2
libass-da4af2b6d86491536b0999f5b731c30b13ff0ac9.tar.xz
Use a function for aligned memory allocations
...instead of doing this manually.
Diffstat (limited to 'libass/ass_bitmap.h')
-rw-r--r--libass/ass_bitmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libass/ass_bitmap.h b/libass/ass_bitmap.h
index b51c1bf..b05e112 100644
--- a/libass/ass_bitmap.h
+++ b/libass/ass_bitmap.h
@@ -26,7 +26,7 @@
typedef struct ass_synth_priv {
int tmp_w, tmp_h;
- unsigned *tmp;
+ void *tmp;
int g_r;
int g_w;
@@ -46,7 +46,6 @@ typedef struct {
int w, h; // width, height
int stride;
unsigned char *buffer; // h * stride buffer
- unsigned char *buffer_ptr; // unaligned pointer (for free())
} Bitmap;
Bitmap *outline_to_bitmap(ASS_Library *library, FT_Library ftlib,