Minor tweak around ECompMgrGetRootBuffer().

SVN revision: 66975
This commit is contained in:
Kim Woelders 2012-01-08 12:54:15 +00:00
parent 207e1451a4
commit a115784797
3 changed files with 4 additions and 6 deletions

View File

@ -2015,7 +2015,7 @@ ECompMgrRootBufferDestroy(void)
Pixmap
ECompMgrGetRootBuffer(void)
{
return Mode_compmgr.pmap;
return (Mode_compmgr.pmap != None) ? Mode_compmgr.pmap : WinGetXwin(VROOT);
}
static void

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2004-2011 Kim Woelders
* Copyright (C) 2004-2012 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@ -70,7 +70,7 @@ void ECompMgrRepaint(void);
#define ECompMgrIsActive() 0
#define ECompMgrGetRootBuffer() None
#define ECompMgrGetRootBuffer() WinGetXwin(VROOT)
#endif

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2007-2011 Kim Woelders
* Copyright (C) 2007-2012 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@ -159,8 +159,6 @@ MagwinRedraw(MagWindow * mw, int paint)
dw = (int)(sw * scale + .5);
dh = (int)(sh * scale + .5);
draw = ECompMgrGetRootBuffer();
if (draw == None)
draw = WinGetXwin(VROOT);
ScaleRect(VROOT, draw, EwinGetClientWin(mw->ewin),
EwinGetClientXwin(mw->ewin), sx, sy, sw, sh,
0, 0, dw, dh, (mw->filter) ? EIMAGE_ANTI_ALIAS : 0);