summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-03-26 14:41:12 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2022-03-27 09:58:21 +0100
commitd00c049d0221c5b63a6a423d5adc7933ac1e758d (patch)
tree1cb27e3e85a45f54a50d74a0bd89aa252e4c74d4 /content/handlers
parent1bbb499f88ef324a4526a74230851dd9a5325e19 (diff)
downloadnetsurf-d00c049d0221c5b63a6a423d5adc7933ac1e758d.tar.gz
netsurf-d00c049d0221c5b63a6a423d5adc7933ac1e758d.tar.bz2
Bitmap: Move bitmap pixel to colour macro to bitmap header.
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/image/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/handlers/image/image.c b/content/handlers/image/image.c
index 4eb366e0b..3107ee495 100644
--- a/content/handlers/image/image.c
+++ b/content/handlers/image/image.c
@@ -26,6 +26,7 @@
#include "netsurf/bitmap.h"
#include "netsurf/content.h"
#include "desktop/gui_internal.h"
+#include "desktop/bitmap.h"
#include "image/bmp.h"
#include "image/gif.h"
@@ -124,7 +125,7 @@ bool image_bitmap_plot(struct bitmap *bitmap,
if (height == 1) {
/* optimise 1x1 bitmap plot */
pixel = guit->bitmap->get_buffer(bitmap);
- fill_style.fill_colour = pixel_to_colour(pixel);
+ fill_style.fill_colour = bitmap_pixel_to_colour(pixel);
if (guit->bitmap->get_opaque(bitmap) ||
((fill_style.fill_colour & 0xff000000) == 0xff000000)) {