Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004834 [Squeak] Kernel minor always 09-09-06 17:50 09-09-06 17:50
Reporter Krivanek View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 3.10
Summary 0004834: [KernelImageOverride] DisplayScreen newDepthNoRestore:
Description DisplayScreen >> newDepthNoRestore:


newDepthNoRestore: pixelSize
    "Change depths. Check if there is enough space! , di"
    | area need |
    pixelSize = depth ifTrue: [^ self "no change"].
    pixelSize abs < self depth ifFalse:
        ["Make sure there is enough space"
        area _ Display boundingBox area. "pixels"
        Smalltalk isMorphic ifFalse:
            [ScheduledControllers scheduledWindowControllers do:
                [:aController | "This should be refined..."
                aController view cacheBitsAsTwoTone ifFalse:
                    [area _ area + aController view windowBox area]]].
        need _ (area * (pixelSize abs - self depth) // 8) "new bytes needed"
                + Smalltalk lowSpaceThreshold.
        (Smalltalk garbageCollectMost <= need
            and: [Smalltalk garbageCollect <= need])
            ifTrue: [self error: 'Insufficient free space']].
    self setExtent: self extent depth: pixelSize.
    Smalltalk isMorphic ifFalse: [ScheduledControllers updateGray].
    DisplayScreen startUp


newDepthNoRestore: pixelSize
    UIManager default newDisplayDepthNoRestore: pixelSize

UI dependent code replaced with the new UIManager message
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
09-09-06 17:50 Krivanek New Issue

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker