Skip to content

windowOpacity seems broken #322

Description

@yliceee

I am using the following code to initialize my renderer:

initRenderer :: SDL.Window -> IO SDL.Renderer
initRenderer window = do
  SDL.windowOpacity window  SDL.$= 0
  putStrLn "Here is the initial opacity: " >> SDL.get (SDL.windowOpacity window)  >>= print 
  renderer <- (SDL.createRenderer window (-1) SDL.defaultRenderer)
  SDL.rendererDrawBlendMode renderer SDL.$= SDL.BlendAlphaBlend
  return renderer

I'm intending for the window to be fully transparent. Instead, it is fully opaque and black. The function prints:

Here is the initial opacity: 
1.0

indicating that the opacity was never affected. Other non-zero values do not affect the window's opacity either.

cabal-version: 3.12
The Glorious Glasgow Haskell Compilation System, version 9.10.2
NixOS 25.11 (If that matters)
Gnome 49 Wayland

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions