Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000764Dwarf FortressTechnical -- Generalpublic2010-04-07 19:522010-08-10 00:14
SirPenguin 
Baughn 
normaltrivialalways
resolvedfixed 
0.31.01 
0.31.04 
0000764: Minimizing in windowed mode causes entire window to be blacked out
While in window mode if you minimize (as opposed to alt tabbing) and maximize again, the whole window is black. The main game screen can be fixed by forcing the game to refresh the tiles (for instance, moving the viewport back and forth), or it does it on its own whenever a creature updates a tile.

However, the borders are exempt from this and remain black, as does the "FPS" portion of the FPS counter.
Open DF, minimize, then maximize.

This has occurred on two systems with drastically different configurations: a laptop on Wind7 off an integrated chip, and a desktop on XP running off of a proper GPU.
My programming sense suspects whatever calls "invalidate()" in the rendering engine is not being properly called on window focus after a maximize. In fact, I'm positive that's what it is, especially given the steps to fix it.

Marked as trivial as it's sure to die in the d# merge
No tags attached.
related to 0000537closed Baughn Will not display in Windowed Mode 
related to 0002032resolved Baughn Resize of window leads to black screen 
related to 0000366resolved Baughn Game zooms in after minimize from fullscreen 
Issue History
2010-04-07 19:52SirPenguinNew Issue
2010-04-07 19:56FootkerchiefRelationship addedrelated to 0000537
2010-04-16 10:59axusNote Added: 0003873
2010-05-26 13:38FootkerchiefRelationship addedrelated to 0002032
2010-06-21 11:44FootkerchiefNote Added: 0008877
2010-06-21 11:45FootkerchiefTag Attached: AWAITING UPDATE
2010-06-28 07:51FootkerchiefNote Added: 0009226
2010-06-28 08:12FootkerchiefRelationship addedrelated to 0000366
2010-06-28 08:32SirPenguinNote Added: 0009243
2010-06-28 09:21FootkerchiefNote Added: 0009247
2010-06-28 09:21FootkerchiefStatusnew => resolved
2010-06-28 09:21FootkerchiefFixed in Version => 0.31.04
2010-06-28 09:21FootkerchiefResolutionopen => fixed
2010-06-28 09:21FootkerchiefAssigned To => Baughn
2010-06-29 07:38FootkerchiefCategoryTechnical => Technical -- General
2010-08-10 00:14DwarfuTag Detached: AWAITING UPDATE

Notes
(0003873)
axus   
2010-04-16 10:59   
Minor note here, when I used the windows shortcut to "minimize all windows", my Dwarf Fortress went away completely. I was able to see it in Task Manager and select "bring to front", then the taskbar had it listed again. The screen is all black, but like you said it's easy to bring back. I'm using PARTIAL_PRINT 0.
(0008877)
Footkerchief   
2010-06-21 11:44   
Does this still occur in 31.08?
(0009226)
Footkerchief   
2010-06-28 07:51   
Reminder sent to: SirPenguin

Does this still occur in 31.08 SDL?
(0009243)
SirPenguin   
2010-06-28 08:32   
Thanks for the reminder. I just tested it out - problem has been fixed
(0009247)
Footkerchief   
2010-06-28 09:21   
Cool, thanks for the update!