Skip to content

Video mode change sometimes gives screen corruption or occasionally crash #9

@rakslice

Description

@rakslice

When you change the video mode (colour depth or resolution) in the mac Monitors control panel, sometimes the video mode change works, sometimes you get a corrupt video situation where it's drawing the same stuff multiple times at different sizes with colour channel mixups and such.

I modified the basiliskii at the final stage update_display_static* that blits into the surface pixels to do some memset 0 bars in specific locations instead right into the surface pixels, to try to take basiliskii's blitting out of the equation, and sure enough when the video mode change works those are as expected and when it goes badly those get scaled and positioned incorrectly too.

I get essentially the same output from libSDL for the video mode changes that work as I get for the mode changes that don't work:

01-16 02:33:20.973 15444 15487 V libSDL  : calling SDL_SetVideoMode(1366, 768, 32, 1)
01-16 02:33:20.973 15444 15484 I libSDL  : SDL_SetVideoMode(): application requested mode 1366x768 OpenGL 0 HW 1 BPP 24
01-16 02:33:20.973 15444 15484 I libSDL  : SDL_SetVideoMode(): application requested hardware video mode - forcing software video mode
01-16 02:33:20.973 15444 15484 E libSDL  : ERROR: Invalid window
01-16 02:33:20.973 15444 15484 E libSDL  : ERROR: Setting the swap interval is not supported
01-16 02:33:20.973 15444 15484 E libSDL  : ERROR: Getting the swap interval is not supported
01-16 02:33:20.973 15444 15484 E libSDL  : ERROR: GL_GetAttribute not supported
01-16 02:33:20.976 15444 15487 V libSDL  : SDL_SetVideoMode(): Requested mode: 1366x768x32, obtained mode 1366x768x24
01-16 02:33:20.978 15444 15487 V libSDL  : SDL_SetVideoMode(): returning surface 0xe5918e40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions