]> git.jsancho.org Git - c-irrlicht.git/commitdiff
Use pointer to struct
authorJavier Sancho <jsf@jsancho.org>
Wed, 2 Oct 2019 15:16:07 +0000 (17:16 +0200)
committerJavier Sancho <jsf@jsancho.org>
Wed, 2 Oct 2019 15:16:07 +0000 (17:16 +0200)
include/cirrlicht.h
src/CIrrlicht.cpp

index 73af3f10829a0c99410d173f7df49ffb923e64bb..80b69cbee28d39292870559eb910bb1a169cea38 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
 #endif
 
   int irr_createDevice(irr_video_E_DRIVER_TYPE deviceType,
-                       irr_core_dimension2d_u32 windowSize);
+                       const irr_core_dimension2d_u32* windowSize);
 
 #ifdef __cplusplus
 }
index 41076cf4a1b4ffcc13bdd53540cd5a8cf71671db..7f10b2bce246147c8bdea73f75f119aeba3c9026 100644 (file)
 
 extern "C" {
   int irr_createDevice(irr_video_E_DRIVER_TYPE deviceType,
-                       irr_core_dimension2d_u32 windowSize)
+                       const irr_core_dimension2d_u32* windowSize)
   {
     irr::core::dimension2d<irr::u32> wsize =                    \
-      irr::core::dimension2d<irr::u32>(windowSize.width,
-                                       windowSize.height);
+      irr::core::dimension2d<irr::u32>(windowSize->width,
+                                       windowSize->height);
     irr::createDevice((irr::video::E_DRIVER_TYPE)deviceType,
                       wsize);
     return 0;