summaryrefslogtreecommitdiff
path: root/src/fltk-devices-surface.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-24 15:30:47 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-24 15:30:47 +1300
commit6673742a204f298db1ca983da0184224d9f21649 (patch)
tree9679d4d3b18f14d47ac358787ee7fa9f067c4bf3 /src/fltk-devices-surface.ads
parentba40e0e277a2a959209e082fd62a3c2e796a9566 (diff)
Fixed issue with checking runtime tags for Surfaces
Diffstat (limited to 'src/fltk-devices-surface.ads')
-rw-r--r--src/fltk-devices-surface.ads12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/fltk-devices-surface.ads b/src/fltk-devices-surface.ads
index cbad055..68d0df7 100644
--- a/src/fltk-devices-surface.ads
+++ b/src/fltk-devices-surface.ads
@@ -26,7 +26,7 @@ package FLTK.Devices.Surface is
package Forge is
function Create
- (Graphics : in FLTK.Devices.Graphics.Graphics_Driver)
+ (Graphics : in out FLTK.Devices.Graphics.Graphics_Driver)
return Surface_Device;
end Forge;
@@ -56,25 +56,23 @@ package FLTK.Devices.Surface is
procedure Set_Driver
(This : in out Surface_Device;
- Driver : in FLTK.Devices.Graphics.Graphics_Driver'Class);
+ Driver : in out FLTK.Devices.Graphics.Graphics_Driver'Class);
private
type Surface_Device is new Device with record
- My_Driver : aliased FLTK.Devices.Graphics.Graphics_Driver;
+ My_Driver : access FLTK.Devices.Graphics.Graphics_Driver'Class;
end record;
- overriding procedure Initialize
- (This : in out Surface_Device);
-
overriding procedure Finalize
(This : in out Surface_Device);
procedure Set_Current_Bookkeep
- (Surface : in Surface_Device'Class);
+ (Surface : in out Surface_Device'Class)
+ with Inline;
pragma Inline (Get_Current);