Remove pseudotransparency support - 2
- Transparency...() macros
This commit is contained in:
parent
fda39df73d
commit
0d97ea5285
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2015 Kim Woelders
|
||||
* Copyright (C) 2004-2018 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
|
||||
|
@ -613,7 +613,7 @@ BackgroundRealize(Background * bg, Win win, EX_Drawable draw,
|
|||
}
|
||||
|
||||
if (is_win && hasbg && !hasfg && x == 0 && y == 0 &&
|
||||
((w == rw && h == rh) || (bg->bg_tile && !TransparencyEnabled())))
|
||||
((w == rw && h == rh) || (bg->bg_tile)))
|
||||
{
|
||||
/* Window, no fg, no offset, and scale to 100%, or tiled, no trans */
|
||||
pmap = BackgroundCreatePixmap(win, w, h);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2015 Kim Woelders
|
||||
* Copyright (C) 2004-2018 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
|
||||
|
@ -252,7 +252,7 @@ _ContainerEwinMoveResize(EWin * ewin, int resize)
|
|||
{
|
||||
Container *ct = (Container *) ewin->data;
|
||||
|
||||
if (!resize && !ct->do_update && !TransparencyUpdateNeeded())
|
||||
if (!resize && !ct->do_update)
|
||||
return;
|
||||
|
||||
ct->w = ewin->client.w;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2015 Kim Woelders
|
||||
* Copyright (C) 2004-2018 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
|
||||
|
@ -367,9 +367,6 @@ _DialogEwinMoveResize(EWin * ewin, int resize __UNUSED__)
|
|||
|
||||
if (!d || Mode.mode != MODE_NONE || !EoIsShown(ewin))
|
||||
return;
|
||||
|
||||
if (TransparencyUpdateNeeded() || ImageclassIsTransparent(d->iclass))
|
||||
DialogRedraw(d);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2017 Kim Woelders
|
||||
* Copyright (C) 2004-2018 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
|
||||
|
@ -421,9 +421,6 @@ doEwinMoveResize(EWin * ewin, Desk * dsk, int x, int y, int w, int h, int flags)
|
|||
|
||||
if (Mode.mode == MODE_NONE)
|
||||
{
|
||||
if (TransparencyUpdateNeeded())
|
||||
EwinBorderDraw(ewin, resize, 1); /* Update the border */
|
||||
|
||||
SnapshotEwinUpdate(ewin, SNAP_USE_POS | SNAP_USE_SIZE);
|
||||
|
||||
if (EoIsShown(ewin))
|
||||
|
|
|
@ -70,10 +70,6 @@
|
|||
/* iclass.c */
|
||||
int ImageclassConfigLoad(FILE * fs);
|
||||
|
||||
#define TransparencyEnabled() 0
|
||||
#define TransparencyUpdateNeeded() 0
|
||||
#define ImageclassIsTransparent(ic) 0
|
||||
|
||||
ImageClass *ImageclassFind(const char *name, int fallback);
|
||||
ImageClass *ImageclassAlloc(const char *name, int fallback);
|
||||
void ImageclassFree(ImageClass * ic);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2017 Kim Woelders
|
||||
* Copyright (C) 2004-2018 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
|
||||
|
@ -236,9 +236,6 @@ _MenuEwinMoveResize(EWin * ewin, int resize __UNUSED__)
|
|||
if (Mode.mode != MODE_NONE && !m->redraw)
|
||||
return;
|
||||
|
||||
if (TransparencyUpdateNeeded())
|
||||
m->redraw = 1;
|
||||
|
||||
if ((!m->style->use_item_bg && m->pmm.pmap == 0) || m->redraw)
|
||||
{
|
||||
MenuRedraw(m);
|
||||
|
|
Loading…
Reference in New Issue