• Show log

    Commit

  • Hash : e3f3a757
    Author : Sam Lantinga
    Date : 2017-08-12T16:02:33

    Fixed bug 3158 - SDL display window scrambled over VNC
    
    Witek Jachimczyk
    
    I'm using SDL to develop a video viewer for MATLAB.  The window is scrambled while using thightVNC with its default mode of RGB656.
    
    SDL does not correctly recognize the pixel mode.
    
    
    I found a solution for this problem.  The solution involves modifying
    SDL/src/video/SDL_pixels.c
    
    Adding the following "if statement" under case 16: of SDL_MasksToPixelFormatEnum resolves the issue:
    
            if (Rmask == 0x003F &&
                Gmask == 0x07C0 &&
                Bmask == 0xF800 &&
                Amask == 0x0000) {
                return SDL_PIXELFORMAT_RGB565;
            }
    
    I hope that this helps someone.  I took me a while to figure it out.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    kc3_lang_org thodg_w www_kmx_io thodg_l thodg thodg_m
    Tags

  • README.txt

  •                          Simple DirectMedia Layer
    
                                      (SDL)
    
                                    Version 2.0
    
    ---
    https://www.libsdl.org/
    
    Simple DirectMedia Layer is a cross-platform development library designed
    to provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog
    and many Humble Bundle games.
    
    More extensive documentation is available in the docs directory, starting
    with README.md
    
    Enjoy!
    	Sam Lantinga				(slouken@libsdl.org)