summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devices/gdevdsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/devices/gdevdsp.c b/devices/gdevdsp.c
index 90e25a79a..7790dd0e8 100644
--- a/devices/gdevdsp.c
+++ b/devices/gdevdsp.c
@@ -207,7 +207,10 @@ display_open(gx_device * dev)
/* Allow device to be opened "disabled" without a callback. */
/* The callback will be set later and the device re-opened. */
if (ddev->callback == NULL)
+ {
+ fill_dev_proc(ddev, fill_rectangle, display_fill_rectangle);
return 0;
+ }
ccode = install_internal_subclass_devices((gx_device **)&ddev, NULL);
if (ccode < 0)
return ccode;