Fixed little display bug, better DIA support

svn-id: r11396
This commit is contained in:
Chris Apers 2003-11-28 09:35:09 +00:00
parent 1b2bfea710
commit abeded8ab8

View File

@ -94,7 +94,7 @@ static void SknCopyBits(DmOpenRef skinDBP, DmResID bitmapID, const RectangleType
}
if (ch) {
Coord picth = gVars->screenFullWidth;
Coord picth = gVars->screenPitch;
dst = (UInt8 *)BmpGetBits(WinGetBitmap(WinGetDisplayWindow()));
dst+= destX + destY * picth;
@ -120,8 +120,10 @@ void SknApplySkin() {
RectangleType r;
FormPtr frmP = FrmGetActiveForm();
WinScreenLock(winLockErase);
WinScreenLock(winLockDontCare);
//SknSetPalette();
RctSetRectangle(&r,0,0,160,160);
WinEraseRectangle(&r,0);
FrmDrawForm(frmP);
if (gPrefs->card.volRefNum != sysInvalidRefNum)
@ -565,4 +567,4 @@ Boolean SknProcessArrowAction(UInt16 button) {
}
return handled;
}
}