зеркало из https://github.com/mozilla/pjs.git
Fix spotlight warnings thanks to Simon.
This commit is contained in:
Родитель
955e381766
Коммит
74829b267e
|
@ -221,7 +221,7 @@ InflateFiles(void *hZip, void *hFind, short tgtVRefNum, long tgtDirID)
|
||||||
if (err!=noErr)
|
if (err!=noErr)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
strncpy(macfilename, filename, strlen(filename));
|
strcpy(macfilename, filename);
|
||||||
SLASHES_2_COLONS(macfilename);
|
SLASHES_2_COLONS(macfilename);
|
||||||
HLock(fullPathH);
|
HLock(fullPathH);
|
||||||
fullPathStr = NewPtrClear(fullPathLen + strlen(macfilename) + 1);
|
fullPathStr = NewPtrClear(fullPathLen + strlen(macfilename) + 1);
|
||||||
|
|
|
@ -192,6 +192,7 @@ ShowTxt(void)
|
||||||
if(gControls->lw->licTxt)
|
if(gControls->lw->licTxt)
|
||||||
{
|
{
|
||||||
RGBColor backColorOld;
|
RGBColor backColorOld;
|
||||||
|
Rect textRect;
|
||||||
|
|
||||||
// get back color
|
// get back color
|
||||||
GetBackColor(&backColorOld);
|
GetBackColor(&backColorOld);
|
||||||
|
@ -200,8 +201,9 @@ ShowTxt(void)
|
||||||
BackColor(whiteColor);
|
BackColor(whiteColor);
|
||||||
|
|
||||||
// erase rect and update
|
// erase rect and update
|
||||||
EraseRect(&(**(gControls->lw->licTxt)).viewRect);
|
textRect = (**(gControls->lw->licTxt)).viewRect;
|
||||||
TEUpdate( &(**(gControls->lw->licTxt)).viewRect, gControls->lw->licTxt);
|
EraseRect(&textRect);
|
||||||
|
TEUpdate(&textRect, gControls->lw->licTxt);
|
||||||
|
|
||||||
// restore back color
|
// restore back color
|
||||||
RGBBackColor(&backColorOld);
|
RGBBackColor(&backColorOld);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче