Updating Mac plugin SDK sample, not part of the build

git-svn-id: svn://10.0.0.236/trunk@110546 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2001-12-15 18:40:35 +00:00
parent d456196734
commit 47c993cd64

View File

@@ -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);
}
// ==============================