Faculty of Information Technology
Software Engineering Group

Opened 11 months ago

Last modified 11 months ago

#201 new defect

[windows-only] remove the always true color hack for StX

Reported by: Patrik Svestka Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description

It appears that on windows Smalltalk/X is using a hack in order to force only 24bit color depth.

I think StX should adjust to the user's depth. It should not be hardcoded.

The valid excerpts from WinWorkstation.st:

#define ALWAYSTRUECOLOR
#ifdef ALWAYSTRUECOLOR
    __depth = 24;  /* its a hack */
#else
    __depth = __realDepth;
    if (__depth == 15)
	__depth = 16;
#endif

Change History (1)

comment:1 Changed 11 months ago by Patrik Svestka

You can always check with the following Smalltalk code:

Display depth or Screen current depth

Note: See TracTickets for help on using tickets.