Skip to content

Commit 187b891

Browse files
committed
Changed in SciterWindowExec signature type for parameter 1
1 parent ee2722c commit 187b891

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

EmptyFlow.SciterAPI/Client/SciterAPIHost.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

EmptyFlow.SciterAPI/EmptyFlow.SciterAPI.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
SciterAPIHost.GraphicsCreateTextForElement new method for creating text related to element
2727
SciterAPIHost.GraphicsCreateTextForElementWithStyle new method for creating text related to element
2828
SciterAPIHost.GraphicsDrawText full refactored
29+
SciterAPIHost.GraphicsGetColor alpha channel is optional now
2930
Added new record GraphicsDrawText for respresent font state
3031
</PackageReleaseNotes>
3132
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

EmptyFlow.SciterAPI/Structs/SciterApiStruct.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ namespace EmptyFlow.SciterAPI.Structs {
204204
public delegate bool SciterReleaseGlobalAsset ( SomAsset pass );
205205

206206
public delegate int SciterExec ( ApplicationCommand appCmd, IntPtr p1, IntPtr p2 );
207-
public delegate int SciterWindowExec ( IntPtr hwnd, WindowCommand windowCmd, int p1, IntPtr p2 );
207+
public delegate int SciterWindowExec ( IntPtr hwnd, WindowCommand windowCmd, nint p1, nint p2 );
208208

209209
public delegate IntPtr /* typedef void(* proc_ptr_t)(void) */ SciterEGLGetProcAddress ( IntPtr procName /* char const* */ );
210210

0 commit comments

Comments
 (0)