mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 00:31:27 +00:00
Removed PR_LOG hack.
This commit is contained in:
parent
04140ca9a0
commit
799ba9aeb2
@ -24,20 +24,3 @@
|
||||
#include <signal.h>
|
||||
|
||||
extern PRLogModuleInfo *PhGfxLog;
|
||||
extern unsigned char PhGfxLogState;
|
||||
#undef PR_LOG
|
||||
|
||||
#define PR_LOG(_module,_level,_args) \
|
||||
PR_BEGIN_MACRO \
|
||||
if (_module == nsnull) { \
|
||||
printf("nsPhGfxLog: defining PhGfxLog\n"); \
|
||||
PhGfxLog = PR_NewLogModule("PhGfxLog"); \
|
||||
PR_SetLogFile("logfile.txt"); \
|
||||
} \
|
||||
if ((_module)->level >= (_level)) \
|
||||
PR_LogPrint _args ;\
|
||||
else if (PhGfxLogState) \
|
||||
PR_LogPrint _args ;\
|
||||
PR_END_MACRO
|
||||
|
||||
|
||||
|
@ -69,12 +69,8 @@ long FillColorVal[8] = {Pg_BLACK,Pg_BLUE,Pg_RED,Pg_YELLOW,Pg_GREEN,Pg_MAGENTA,Pg
|
||||
#define NS_TO_PH_RGB(ns) (ns & 0xff) << 16 | (ns & 0xff00) | ((ns >> 16) & 0xff)
|
||||
#define PH_TO_NS_RGB(ns) (ns & 0xff) << 16 | (ns & 0xff00) | ((ns >> 16) & 0xff)
|
||||
|
||||
/* This global int turns on/off double buffering, there is probably */
|
||||
/* a better way but not sure what it is.. */
|
||||
int double_buffer = 1;
|
||||
#include <prlog.h>
|
||||
PRLogModuleInfo *PhGfxLog = NULL;
|
||||
unsigned char PhGfxLogState = 0; /* 0 == Not Enabled */
|
||||
PRLogModuleInfo *PhGfxLog = PR_NewLogModule("PhGfxLog");
|
||||
#include "nsPhGfxLog.h"
|
||||
|
||||
/* Global Variable for Alpha Blending */
|
||||
@ -860,9 +856,6 @@ NS_IMETHODIMP nsRenderingContextPh :: CreateDrawingSurface(nsRect *aBounds, PRUi
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
extern int double_buffer;
|
||||
if (!double_buffer) return NS_OK;
|
||||
|
||||
nsDrawingSurfacePh *surf = new nsDrawingSurfacePh();
|
||||
//printf ("create2: %p %d\n",surf,aSurfFlags);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user