summaryrefslogtreecommitdiffstats
path: root/libdimension/camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/camera.c')
-rw-r--r--libdimension/camera.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/camera.c b/libdimension/camera.c
index 124242c..67117f9 100644
--- a/libdimension/camera.c
+++ b/libdimension/camera.c
@@ -42,7 +42,7 @@ dmnsn_delete_camera(dmnsn_camera *camera)
{
if (camera) {
if (camera->free_fn) {
- (*camera->free_fn)(camera->ptr);
+ camera->free_fn(camera->ptr);
}
dmnsn_free(camera);
}
@@ -52,6 +52,6 @@ dmnsn_delete_camera(dmnsn_camera *camera)
dmnsn_line
dmnsn_camera_ray(const dmnsn_camera *camera, double x, double y)
{
- dmnsn_line ray = (*camera->ray_fn)(camera, x, y);
+ dmnsn_line ray = camera->ray_fn(camera, x, y);
return dmnsn_transform_line(camera->trans, ray);
}