Updating Mac plugin SDK sample, not part of the build

This commit is contained in:
peterlubczynski%netscape.com 2001-12-15 18:40:35 +00:00
Родитель 6cad57a3d2
Коммит d4b5f94a09
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -166,9 +166,6 @@ nsPluginInstance::DoDraw(void)
SInt32 centerX = (width) >> 1;
SInt32 centerY = (height) >> 1;
//const char * ua = getVersion();
//char* pascalString = (char*) NPN_MemAlloc(strlen(ua) + 1);
//strcpy(pascalString, ua);
UInt8 *pTheText = (unsigned char*) mString;
drawRect.top = 0;
@ -296,14 +293,20 @@ void nsPluginInstance::showVersion()
{
const char *ua = NPN_UserAgent(mInstance);
strcpy(mString, ua);
StartDraw(mWindow);
DoDraw();
EndDraw(mWindow);
}
// this will clean the plugin window
void nsPluginInstance::clear()
{
strcpy(mString, "");
StartDraw(mWindow);
DoDraw();
EndDraw(mWindow);
}
// ==============================