From dee76d5884c6f079ea3a2387d07289534a51a0c1 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 28 Jan 2025 21:43:17 +1300 Subject: Revised Image subhierarchy, fixed data subprograms, added constructor for Pixmap --- body/c_fl_bitmap.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'body/c_fl_bitmap.cpp') diff --git a/body/c_fl_bitmap.cpp b/body/c_fl_bitmap.cpp index 01077b2..a54b579 100644 --- a/body/c_fl_bitmap.cpp +++ b/body/c_fl_bitmap.cpp @@ -39,6 +39,13 @@ void fl_bitmap_uncache(BITMAP b) { +const void * fl_bitmap_data(BITMAP b) { + return static_cast(static_cast(b)->array); +} + + + + void fl_bitmap_draw2(BITMAP b, int x, int y) { static_cast(b)->draw(x, y); } -- cgit