mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2024-11-22 02:30:47 +00:00
Use shadowing and fast port optimizations for QuickDraw.
This should cause a bit of a speedup, although it wasn't really noticeable in my tests.
This commit is contained in:
parent
d1b2e10489
commit
bb65891a4a
@ -121,7 +121,7 @@ static void ChangeResolution(int rez) {
|
||||
if (dpSpace == NULL)
|
||||
dpSpace = NewHandle(0x0300, userid(),
|
||||
attrLocked|attrFixed|attrNoCross|attrBank, 0x00000000);
|
||||
QDStartUp((Word) *dpSpace, (rez == 640) ? 0x87 : 0x00, 0, userid());
|
||||
QDStartUp((Word) *dpSpace, (rez == 640) ? 0xC087 : 0xC000, 0, userid());
|
||||
/* SCB 0x87 gives 640 mode with our custom gray palette */
|
||||
GrafOff();
|
||||
QDAuxStartUp();
|
||||
@ -359,5 +359,3 @@ void ConnectedEventLoop (void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
10
vncview.cc
10
vncview.cc
@ -122,9 +122,6 @@ static void DoAbout (void) {
|
||||
***************************************************************/
|
||||
|
||||
static void DoNewConnection (void) {
|
||||
unsigned int masterSCB;
|
||||
|
||||
masterSCB = GetMasterSCB();
|
||||
MakeThisCtlTarget(GetCtlHandleFromID(newConnWindow, linServer));
|
||||
ShowWindow(newConnWindow);
|
||||
SelectWindow(newConnWindow);
|
||||
@ -345,10 +342,9 @@ static void InitScreen (void) {
|
||||
0x0000, 0x0555, 0x0AAA, 0x0FFF, 0x0000, 0x0555, 0x0AAA, 0x0FFF
|
||||
};
|
||||
|
||||
/* Apple menu uses color tables 1 through 6 */
|
||||
SetColorTable(7, &gray640Colors);
|
||||
SetAllSCBs(0x87); /* 640 mode with gray640Colors */
|
||||
InitPalette(); /* Restore Apple Menu colors */
|
||||
/* Apple menu uses color tables 1 through 6.
|
||||
* We set SCBs for color table 7 in StartUpTools or QDStartUp. */
|
||||
SetColorTable(7, &gray640Colors);
|
||||
}
|
||||
|
||||
static void Quit (void) {
|
||||
|
@ -73,7 +73,7 @@
|
||||
/*- Tools ------------------------------------------------------*/
|
||||
|
||||
resource rToolStartup(1) {
|
||||
mode640,
|
||||
$C087, /* mode640 + fFastPortAware + fUseShadowing + color table 7 */
|
||||
{
|
||||
3, $0302, /* Misc Tool */
|
||||
4, $0307, /* QuickDraw II */
|
||||
|
Loading…
Reference in New Issue
Block a user