mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Added suppprt for Virtual Consoles under Photon.� These changes make
almost everything work correctly no matter what console mozilla is started on or it moved to. PHOTON ONLY
This commit is contained in:
parent
782c6ba7e3
commit
9a6436685a
@ -87,4 +87,21 @@ PhDrawContext_t *nsToolkit::GetDefaultPhotonDrawContext()
|
||||
}
|
||||
|
||||
return nsToolkit::mDefaultPhotonDrawContext;
|
||||
}
|
||||
|
||||
PhPoint_t nsToolkit::GetConsoleOffset()
|
||||
{
|
||||
PhRect_t console;
|
||||
char *p = NULL;
|
||||
int inp_grp = 0;
|
||||
|
||||
p = getenv("PHIG");
|
||||
if (p)
|
||||
{
|
||||
inp_grp = atoi(p);
|
||||
if (PhWindowQueryVisible( Ph_QUERY_GRAPHICS, 0, inp_grp, &console ) == 0)
|
||||
return(PhPoint_t) {console.ul.x, console.ul.y};
|
||||
}
|
||||
|
||||
return(PhPoint_t) {0,0};
|
||||
}
|
@ -38,7 +38,8 @@ public:
|
||||
NS_IMETHOD Init( PRThread *aThread );
|
||||
|
||||
static PhDrawContext_t *GetDefaultPhotonDrawContext();
|
||||
|
||||
static PhPoint_t GetConsoleOffset();
|
||||
|
||||
private:
|
||||
static PRBool mPtInited;
|
||||
static PhDrawContext_t *mDefaultPhotonDrawContext;
|
||||
|
Binary file not shown.
@ -1418,7 +1418,7 @@ void nsWindow::RawDrawFunc( PtWidget_t * pWidget, PhTile_t * damage )
|
||||
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsWindow::RawDrawFunc Damage Tiles List:\n"));
|
||||
do {
|
||||
PhRect_t rect = top->rect;
|
||||
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsWindow::RawDrawFunc photon damage %d rect=<%d,%d,%d,%d> next=<%p>\n", index++,rect.ul.x,rect.ul.y,rect.lr.x,rect.lr.y, top->next));
|
||||
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsWindow::RawDrawFunc photon damage %d rect=<%d,%d,%d,%d> next=<%p>\n", index++,rect.ul.x,rect.ul.y,rect.lr.x,rect.lr.y, to*WÔ |