https://linen.dev logo
Join Discord
Powered by
# openfl
  • f

    future-iron-61487

    05/15/2023, 12:57 AM
    ... why would you do that
  • f

    future-iron-61487

    05/15/2023, 12:57 AM
    oh wait, unless you mean just disabling fullscreen; that's fair
  • c

    clever-airline-85054

    05/15/2023, 8:16 AM
    Yea
  • c

    clever-airline-85054

    05/15/2023, 8:16 AM
    Like just
  • c

    clever-airline-85054

    05/15/2023, 8:16 AM
    Not letting the player fullscreen
  • c

    clever-airline-85054

    05/15/2023, 8:16 AM
    At all
  • c

    clever-airline-85054

    05/15/2023, 8:16 AM
    Cus in openfl apps (atleast i think it's for openfl), pressing ALT + RETURN fullscreens
  • c

    clever-airline-85054

    05/15/2023, 8:16 AM
    I've tried shadowing Stage.hx to disable things, but nothing seemed to work
  • c

    clever-airline-85054

    05/15/2023, 8:22 AM
    @future-iron-61487 do you know what i can do?
  • a

    able-action-74275

    05/15/2023, 8:35 AM
    try setting
    resizable="false"
    in window element of project.xml
  • c

    clever-airline-85054

    05/15/2023, 9:41 AM
    U sure?
  • c

    clever-airline-85054

    05/15/2023, 9:42 AM
    That only make it well, non resizable
  • c

    clever-airline-85054

    05/15/2023, 9:42 AM
    That doesn't change the fact that pressing alt + enter toggles fullscreen
  • t

    tall-teacher-57409

    05/15/2023, 9:54 AM
    alt tab doesn't even force full-screen for me
  • a

    able-action-74275

    05/15/2023, 9:56 AM
    I'm not sure
  • a

    able-action-74275

    05/15/2023, 9:56 AM
    but I think it used to work
  • a

    able-action-74275

    05/15/2023, 9:59 AM
    you could filter out alt+enter keyboard event but that feels like a hack
  • p

    powerful-smartphone-79287

    05/15/2023, 10:06 AM
    maybe you could just untrigger fullscreen when alt enter is detected so it does nothing
  • a

    able-action-74275

    05/15/2023, 10:08 AM
    I just tested and it definitely isn't preventing fullscreen toggle - feels lik a bug to me
  • p

    powerful-morning-89

    05/15/2023, 10:10 AM
    (Question, why do you want to prevent the player from going fullscreen?)
  • t

    tall-teacher-57409

    05/15/2023, 10:55 AM
    fnf
  • r

    rhythmic-wolf-50922

    05/15/2023, 3:33 PM
    listen for
    KeyboardEvent.KEY_DOWN
    . in the listener, if
    event.keyCode == Keyboard.ENTER
    and
    event.altKey
    is
    true
    , you should be able to call
    event.preventDefault()
    to cancel it
  • c

    clever-airline-85054

    05/15/2023, 3:34 PM
    Oh snap
  • c

    clever-airline-85054

    05/15/2023, 3:34 PM
    Tganks you
  • c

    curved-lifeguard-6743

    05/15/2023, 3:34 PM
    Nvm, the reason why this was happening is because stage3D textures doesn't update on a bitmap class
  • c

    curved-lifeguard-6743

    05/15/2023, 3:35 PM
    Because it just checks if the image isn't null and not the texture
  • c

    curved-lifeguard-6743

    05/15/2023, 3:38 PM
    Replacing this line https://github.com/openfl/openfl/blob/develop/src/openfl/display/Bitmap.hx#L126 With this
    Copy code
    if (__renderable && __bitmapData != null)
                __setRenderDirty();
  • c

    curved-lifeguard-6743

    05/15/2023, 3:38 PM
    Seems to got it working
  • r

    rhythmic-wolf-50922

    05/15/2023, 3:40 PM
    that will update it every single frame, even if it hasn't changed
  • c

    curved-lifeguard-6743

    05/15/2023, 4:09 PM
    Im trying to render a video on a bitmap class using libvlc
1...525354...57Latest