summaryrefslogtreecommitdiff
path: root/src/fltk-devices-surface-copy.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-devices-surface-copy.adb')
-rw-r--r--src/fltk-devices-surface-copy.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fltk-devices-surface-copy.adb b/src/fltk-devices-surface-copy.adb
index fe96f91..7bb1c66 100644
--- a/src/fltk-devices-surface-copy.adb
+++ b/src/fltk-devices-surface-copy.adb
@@ -147,7 +147,7 @@ package body FLTK.Devices.Surface.Copy is
(This : in out Copy_Surface) is
begin
fl_copy_surface_set_current (This.Void_Ptr);
- Current_Ptr := This'Unchecked_Access;
+ This.Set_Current_Bookkeep;
end Set_Current;