https://linen.dev logo
Join Discord
Powered by
# lime
  • a

    able-action-74275

    03/18/2023, 10:39 PM
    ah cool
  • c

    calm-horse-72201

    03/18/2023, 10:39 PM
    so i do not think it would be causing the issue
  • a

    able-action-74275

    03/18/2023, 10:39 PM
    indeed
  • a

    able-action-74275

    03/18/2023, 10:40 PM
    does it work for other targets?
  • c

    calm-horse-72201

    03/18/2023, 10:40 PM
    yes
  • c

    calm-horse-72201

    03/18/2023, 10:40 PM
    i normally test on cpp and occasionally html5
  • a

    able-action-74275

    03/18/2023, 10:40 PM
    including hxcpp ?
  • a

    able-action-74275

    03/18/2023, 10:40 PM
    OK sweeet
  • a

    able-action-74275

    03/18/2023, 10:40 PM
    could be a discrepancy between hashlink and hxcpp bindings
  • b

    bulky-insurance-39338

    03/18/2023, 10:43 PM
    hashlink have its own bindings here:
  • b

    bulky-insurance-39338

    03/18/2023, 10:46 PM
    (somewhere up there is same bindings for older or newer prime way of cpp-bindings [or neko;])
  • b

    bulky-insurance-39338

    03/18/2023, 10:47 PM
    So if you change something there to test out, you need e.g. a
    lime rebuild hl
  • h

    hallowed-ocean-84954

    03/18/2023, 10:48 PM
    has the cpp function binding
  • a

    able-action-74275

    03/18/2023, 10:48 PM
    I was wrong, looking at the wrong function lol
  • h

    hallowed-ocean-84954

    03/18/2023, 10:48 PM
    ok - I was about to ask
  • b

    bulky-insurance-39338

    03/18/2023, 10:50 PM
    this is how it _diffs_:
    Copy code
    haxe
    @:cffi private static function lime_image_data_util_copy_pixels(image:Dynamic, sourceImage:Dynamic, sourceRect:Dynamic, destPoint:Dynamic, alphaImage:Dynamic, alphaPoint:Dynamic, mergeAlpha:Bool):Void;
    // hashlink:
    @:hlNative("lime", "hl_image_data_util_copy_pixels") private static function lime_image_data_util_copy_pixels(image:Image, sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, alphaImage:Image, alphaPoint:Vector2, mergeAlpha:Bool):Void {}
  • a

    able-action-74275

    03/18/2023, 10:52 PM
    yeah so hashlink does it's fun little wrapping thing for all the types
  • a

    able-action-74275

    03/18/2023, 10:53 PM
    where hxcpp uses Dynamic
  • a

    able-action-74275

    03/18/2023, 10:53 PM
    sooo one of the hashlink wrappers could be error ing
  • b

    bulky-insurance-39338

    03/18/2023, 10:53 PM
    yep (hashlink did it better strictly ;:)
  • a

    able-action-74275

    03/18/2023, 10:54 PM
    I'm learning a lot from lime hashlink bindings
  • a

    able-action-74275

    03/18/2023, 10:54 PM
    the last few days trying to eat that soup with a fork
  • a

    able-action-74275

    03/18/2023, 10:56 PM
    still barely know what I'm looking at but it's starting to stick
  • a

    able-action-74275

    03/18/2023, 11:02 PM
    OK I think I've found the cause of the bug
  • a

    able-action-74275

    03/18/2023, 11:05 PM
    if I force it to call the function here, then it does not crash
  • b

    bulky-insurance-39338

    03/18/2023, 11:06 PM
    ah, then it is if
    alphaImage
    is not null AND
    alphaPoint
    vector2 is null ?
  • b

    bulky-insurance-39338

    03/18/2023, 11:16 PM
    (definitively if one of them is not NULL 😂)
  • a

    able-action-74275

    03/18/2023, 11:17 PM
    yeah the weird thing is...
    Copy code
    cpp
    if (!alphaImage) {
      ImageDataUtil::CopyPixels (image, sourceImage, sourceRect, destPoint, NULL, NULL, mergeAlpha);
    }
  • a

    able-action-74275

    03/18/2023, 11:17 PM
    this is correct, because alphaImage is NULL
  • a

    able-action-74275

    03/18/2023, 11:18 PM
    so it should work
1...909192...138Latest