зеркало из https://github.com/mozilla/pjs.git
Updating Mac plugin SDK sample, not part of the build
This commit is contained in:
Родитель
6cad57a3d2
Коммит
d4b5f94a09
|
@ -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);
|
||||
}
|
||||
|
||||
// ==============================
|
||||
|
|
Загрузка…
Ссылка в новой задаче