fixed updating

git-svn-id: svn://10.0.0.236/trunk@8860 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com 1998-08-31 15:08:46 +00:00
parent 8843e8b87e
commit 85b4a44fb1
2 changed files with 5 additions and 1 deletions

View File

@ -218,7 +218,8 @@ nsEventStatus PR_CALLBACK HandleEventGraphicPane(nsGUIEvent *aEvent)
{
if (scribbleData.isDrawing) {
nsIRenderingContext *drawCtx = aEvent->widget->GetRenderingContext();
drawCtx->SetColor(aEvent->widget->GetForegroundColor());
//drawCtx->SetColor(aEvent->widget->GetForegroundColor());
drawCtx->SetColor(NS_RGB(255, 0, 0));
drawCtx->DrawLine(scribbleData.mousePos.x,
scribbleData.mousePos.y,
((nsGUIEvent*)aEvent)->point.x,
@ -482,6 +483,7 @@ nsresult CreateApplication(int * argc, char ** argv)
NULL,
appShell);
//scribbleData.mainWindow->SetBackgroundColor(laf->GetColor(nsLAF::WindowBackground));
scribbleData.mainWindow->SetBackgroundColor(NS_RGB(255,255,255));
scribbleData.mainWindow->SetTitle("Scribble");
//
@ -492,6 +494,7 @@ nsresult CreateApplication(int * argc, char ** argv)
NSRepository::CreateInstance(kCChildCID, nsnull, kIWidgetIID, (void **)&controlPane);
controlPane->Create(scribbleData.mainWindow, rect, HandleEventControlPane, NULL);
//controlPane->SetBackgroundColor(laf->GetColor(nsLAF::WindowBackground));
controlPane->SetBackgroundColor(NS_RGB(0,0,255));
controlPane->Show(PR_TRUE);
#ifdef NOTNOW
@ -605,6 +608,7 @@ nsresult CreateApplication(int * argc, char ** argv)
NSRepository::CreateInstance(kCChildCID, nsnull, kIWidgetIID, (void **)&scribbleData.drawPane);
scribbleData.drawPane->Create(scribbleData.mainWindow, rect, HandleEventGraphicPane, NULL);
//scribbleData.drawPane->SetBackgroundColor(laf->GetColor(nsLAF::WindowBackground));
scribbleData.drawPane->SetBackgroundColor(NS_RGB(255,250,250));
scribbleData.drawPane->Show(PR_TRUE);
//