@@ -121,7 +121,7 @@ public void CreateMainWindow ( int width = 0, int height = 0, bool enableDebug =
121121 IntPtr . Zero
122122 ) ;
123123
124- if ( rectangePointer != nint . Zero ) Marshal . FreeHGlobal ( rectangePointer ) ;
124+ if ( rectangePointer != nint . Zero ) Marshal . FreeHGlobal ( rectangePointer ) ;
125125
126126 if ( enableDebug ) {
127127 m_basicApi . SciterSetupDebugOutput (
@@ -162,20 +162,20 @@ public void PrepareRequestApi () {
162162
163163 public int Process ( ) {
164164 //activate window
165- m_basicApi . SciterWindowExec ( m_mainWindow , WindowCommand . SCITER_WINDOW_ACTIVATE , 1 , IntPtr . Zero ) ;
165+ m_basicApi . SciterWindowExec ( m_mainWindow , WindowCommand . SCITER_WINDOW_ACTIVATE , 1 , nint . Zero ) ;
166166
167167 //expand window
168- m_basicApi . SciterWindowExec ( m_mainWindow , WindowCommand . SCITER_WINDOW_SET_STATE , 1 , IntPtr . Zero ) ;
168+ m_basicApi . SciterWindowExec ( m_mainWindow , WindowCommand . SCITER_WINDOW_SET_STATE , 1 , nint . Zero ) ;
169169
170170 // run loop for waiting close all windows
171- var code = m_basicApi . SciterExec ( ApplicationCommand . SCITER_APP_LOOP , IntPtr . Zero , IntPtr . Zero ) ;
171+ var code = m_basicApi . SciterExec ( ApplicationCommand . SCITER_APP_LOOP , nint . Zero , nint . Zero ) ;
172172
173173 // remove event handlers
174174 if ( m_eventHandlerMap . Any ( ) ) m_eventHandlerMap . Clear ( ) ;
175175 if ( m_eventHandlerUniqueMap . Any ( ) ) m_eventHandlerUniqueMap . Clear ( ) ;
176176
177177 // deinitialize engine
178- m_basicApi . SciterExec ( ApplicationCommand . SCITER_APP_SHUTDOWN , IntPtr . Zero , IntPtr . Zero ) ;
178+ m_basicApi . SciterExec ( ApplicationCommand . SCITER_APP_SHUTDOWN , nint . Zero , nint . Zero ) ;
179179
180180 return code ;
181181 }
0 commit comments