diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-10-13 02:00:32 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-10-13 02:00:32 +1300 |
commit | 87671a2f2423efacd0b0c4ad0c34c244680ef565 (patch) | |
tree | b581ee812415bd27bed09f0e0c77c4d24619afcf /src/fltk-images-bitmaps.adb | |
parent | ca99321b1f7aa54b435c73f1ec14321dbd989f16 (diff) |
Changed System.Address to Integer_Address
Diffstat (limited to 'src/fltk-images-bitmaps.adb')
-rw-r--r-- | src/fltk-images-bitmaps.adb | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/fltk-images-bitmaps.adb b/src/fltk-images-bitmaps.adb index 3ddfa93..0bea597 100644 --- a/src/fltk-images-bitmaps.adb +++ b/src/fltk-images-bitmaps.adb @@ -2,39 +2,34 @@ with - Interfaces.C, - System; - -use type - - System.Address; + Interfaces.C; package body FLTK.Images.Bitmaps is function new_fl_bitmap - (D : in System.Address; + (D : in Storage.Integer_Address; W, H : in Interfaces.C.int) - return System.Address; + return Storage.Integer_Address; pragma Import (C, new_fl_bitmap, "new_fl_bitmap"); pragma Inline (new_fl_bitmap); procedure free_fl_bitmap - (I : in System.Address); + (I : in Storage.Integer_Address); pragma Import (C, free_fl_bitmap, "free_fl_bitmap"); pragma Inline (free_fl_bitmap); function fl_bitmap_copy - (I : in System.Address; + (I : in Storage.Integer_Address; W, H : in Interfaces.C.int) - return System.Address; + return Storage.Integer_Address; pragma Import (C, fl_bitmap_copy, "fl_bitmap_copy"); pragma Inline (fl_bitmap_copy); function fl_bitmap_copy2 - (I : in System.Address) - return System.Address; + (I : in Storage.Integer_Address) + return Storage.Integer_Address; pragma Import (C, fl_bitmap_copy2, "fl_bitmap_copy2"); pragma Inline (fl_bitmap_copy2); @@ -42,7 +37,7 @@ package body FLTK.Images.Bitmaps is procedure fl_bitmap_uncache - (I : in System.Address); + (I : in Storage.Integer_Address); pragma Import (C, fl_bitmap_uncache, "fl_bitmap_uncache"); pragma Inline (fl_bitmap_uncache); @@ -50,13 +45,13 @@ package body FLTK.Images.Bitmaps is procedure fl_bitmap_draw2 - (I : in System.Address; + (I : in Storage.Integer_Address; X, Y : in Interfaces.C.int); pragma Import (C, fl_bitmap_draw2, "fl_bitmap_draw2"); pragma Inline (fl_bitmap_draw2); procedure fl_bitmap_draw - (I : in System.Address; + (I : in Storage.Integer_Address; X, Y, W, H, CX, CY : in Interfaces.C.int); pragma Import (C, fl_bitmap_draw, "fl_bitmap_draw"); pragma Inline (fl_bitmap_draw); @@ -67,11 +62,11 @@ package body FLTK.Images.Bitmaps is overriding procedure Finalize (This : in out Bitmap) is begin - if This.Void_Ptr /= System.Null_Address and then + if This.Void_Ptr /= Null_Pointer and then This in Bitmap'Class then free_fl_bitmap (This.Void_Ptr); - This.Void_Ptr := System.Null_Address; + This.Void_Ptr := Null_Pointer; end if; Finalize (Image (This)); end Finalize; @@ -92,7 +87,7 @@ package body FLTK.Images.Bitmaps is begin return This : Bitmap do This.Void_Ptr := new_fl_bitmap - (Data (Data'First)'Address, + (Storage.To_Integer (Data (Data'First)'Address), Interfaces.C.int (Width), Interfaces.C.int (Height)); case fl_image_fail (This.Void_Ptr) is |