Bug 220335
Summary: | Crashes when turning on full-screen mode | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Schwendt <bugs.michael> | ||||||
Component: | nethack-vultures | Assignee: | Karen Pease <meme> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6 | CC: | hdegoede | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 2.1.0-9 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-08-30 20:23:44 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 213321 | ||||||||
Attachments: |
|
Description
Michael Schwendt
2006-12-20 14:49:20 UTC
Hi all, I stumbled over this bug, and thought it would be a good idea to take a look. After about an hour of debugging I found that the crash is caused by 2 functions in: vultures/vultures_gra.c not being able to handle the 16 bpp mode SDL gave vultures when switching to fullscreen. So I fixed both functions to not only handle 32 bpp visuals but also 16 bpp visuals. This fixed the crashes, but after a fs-window toggle or vica versa the text colors were off (text was black). Fixing the text colors however doesn't seem easy as vultures is actually designed to only run with 32 bpp visuals. The (irrelevant) fixes to vultures/vultures_gra.c are available in the to be attached patch: vultures-2.1.0-partial-16bpp-support.patch I say irrelevant because the real problem is that vultures does clearly tell SDL that it wants a 32 bpp mode when first starting up, but when then later switching from windows to fullscreen or vica-versa says that any mode will do and then on my 16 bpp colordepth X-server SDL happily returns a 16 bpp surface. Fixing the windows <-> fullscreen to also always request 32 bpp fixes the crash and gets the text colors right. This fix is in the to be attached patch: vultures-2.1.0-fs-window-toggle-crash.patch Regards, Hans Created attachment 149137 [details]
Incomplete 16 bpp surface support
Created attachment 149138 [details]
PATCH fixing the crashes on fs<->window toggle on a 16bpp X-server
Ping? I've presented the fix to you on a golden platter, some kinda repsonse would be nice or even better a fixed package. Sorry -- I missed the bugzilla email when the patch came in. I'll get it in tonight. The fix has been sent off to plague on fc5, fc6, and fc7. fc3 and fc4 don't seem to be accepting make plague any more for some reason. :P Thanks for your patches! |