• Sam Lantinga's avatar
    Fixed bug #616 · 0bb1a612
    Sam Lantinga authored
     rainer canavan      2009-03-29 12:30:12 PDT
    
    add default visual to this->hidden->visuals
    
    X11_SetIcon appears to have problems getting the correct bpp for the default
    visual of my screen. With larger icons, this causes a segfault somewhere in
    libX11. Instead of adding the default visual to the internal list, I can work
    around this problem (both the segfault and the distortion) by setting bpp to 32
    before sicon = SDL_CreateRGBSurface(...) in X11_SetIcon, although with this
    patch, it stays at 24.
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403925
    0bb1a612
SDL_x11modes.c 35.5 KB