Modify ↓
Ticket #2822 (closed bug: fixed)
Crashes on first start in wrappers.cpp:94 because of 0 resolution (SIGFPE)
| Reported by: | glogow@… | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | unspecified |
| Component: | Engine: Graphics | Version: | git/master |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Operating System: | GNU/Linux 32bit |
Description
If the game is started for the first time without a config, the resolution is set to 0 / 0, which will crash the game at @subject because boxHeight will be 0 and causes a SIGFPE (divide by 0).
The attached patch always sets a "sane" default config resolution (640 / 480), so the game won't crash instantly on start.
Attachments
Change History
Changed 10 months ago by glogow@…
- Attachment use_sane_default_config_resolution.diff added
comment:1 Changed 10 months ago by Per Inge Mathisen
- Status changed from new to closed
- Resolution set to fixed
Always set a sane default size for game window. Patch by glogow@…, closes ticket:2822
Note: See
TracTickets for help on using
tickets.

Set default config resolution to 640x480