Merge lp:~widelands-dev/widelands/bug-1817686-SDL-pixel-format into lp:widelands
Proposed by
GunChleoc
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8999 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1817686-SDL-pixel-format | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
21 lines (+10/-1) 1 file modified
src/graphic/graphic.cc (+10/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1817686-SDL-pixel-format | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benedikt Straub | Approve | ||
Review via email: mp+363729@code.launchpad.net |
Commit message
Fail with SDL messagebox if SDL_BYTESPERPIXEL != 4
To post a comment you must log in.
Tested it.
The log says »ERROR: Wrong SDL_BYTESPERPIXEL, expected 4 but got 1« as expected.
But no message box appears, the program exits immediately.
By the way, the assert could be removed now, right? Since the triggering failure is now caught beforehand.