You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I'm trying to wrap the low level drawing stuff into a nicer API, and I'm facing some trouble. If I add the following code to the very bottom of ui.nim
Ill get the error: Error: type mismatch: got <proc (a: ptr AreaHandler, area: ptr Area, p: ptr AreaDrawParams){.cdecl, noSideEffect, gcsafe, locks: 0.}> but expected 'proc (a2: ptr AreaHandler, a3: ptr Area, a4: ptr AreaDrawParams){.cdecl.}' for the line: result.handler.draw = dc. Can someone explain why that is, and how to fix it?
The text was updated successfully, but these errors were encountered:
Hey,
I'm trying to wrap the low level drawing stuff into a nicer API, and I'm facing some trouble. If I add the following code to the very bottom of ui.nim
Ill get the error:
Error: type mismatch: got <proc (a: ptr AreaHandler, area: ptr Area, p: ptr AreaDrawParams){.cdecl, noSideEffect, gcsafe, locks: 0.}> but expected 'proc (a2: ptr AreaHandler, a3: ptr Area, a4: ptr AreaDrawParams){.cdecl.}'
for the line:result.handler.draw = dc
. Can someone explain why that is, and how to fix it?The text was updated successfully, but these errors were encountered: