more inlines in pt_png..
authorTero Marttila <terom@fixme.fi>
Mon, 25 Jan 2010 21:05:39 +0200
changeset 97 84952fa708d4
parent 96 b7f6473c4adf
child 98 f195b8195b5a
more inlines in pt_png..
src/lib/png.c
--- a/src/lib/png.c	Mon Jan 25 21:05:24 2010 +0200
+++ b/src/lib/png.c	Mon Jan 25 21:05:39 2010 +0200
@@ -345,7 +345,7 @@
     return 0;
 }
 
-static size_t scale_by_zoom_factor (size_t value, int z)
+static inline size_t scale_by_zoom_factor (size_t value, int z)
 {
     if (z > 0)
         return value << z;
@@ -359,7 +359,7 @@
 
 #define ADD_AVG(l, r) (l) = ((l) + (r)) / 2
 
-static int png_pixel_data (png_color *out, const struct pt_png_header *header, const uint8_t *data, size_t row, size_t col)
+static inline int png_pixel_data (png_color *out, const struct pt_png_header *header, const uint8_t *data, size_t row, size_t col)
 {
     if (header->color_type == PNG_COLOR_TYPE_PALETTE) {
         // palette entry number