kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=0d97ea528576c3ebcea32852f00dc2573a485b4b

commit 0d97ea528576c3ebcea32852f00dc2573a485b4b
Author: Kim Woelders <k...@woelders.dk>
Date:   Sun Feb 4 09:08:41 2018 +0100

    Remove pseudotransparency support - 2
    
    - Transparency...() macros
---
 src/backgrounds.c | 4 ++--
 src/container.c   | 4 ++--
 src/dialog.c      | 5 +----
 src/ewin-ops.c    | 5 +----
 src/iclass.h      | 4 ----
 src/menus.c       | 5 +----
 6 files changed, 7 insertions(+), 20 deletions(-)

diff --git a/src/backgrounds.c b/src/backgrounds.c
index 21573a60..b92d6755 100644
--- a/src/backgrounds.c
+++ b/src/backgrounds.c
@@ -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);
diff --git a/src/container.c b/src/container.c
index 4b626e7d..a9fda4b1 100644
--- a/src/container.c
+++ b/src/container.c
@@ -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;
diff --git a/src/dialog.c b/src/dialog.c
index 3743badf..d76df4bc 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -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
diff --git a/src/ewin-ops.c b/src/ewin-ops.c
index 72d38b39..1a387748 100644
--- a/src/ewin-ops.c
+++ b/src/ewin-ops.c
@@ -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))
diff --git a/src/iclass.h b/src/iclass.h
index 36e9639a..6655f3db 100644
--- a/src/iclass.h
+++ b/src/iclass.h
@@ -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);
diff --git a/src/menus.c b/src/menus.c
index 622fee06..e8533429 100644
--- a/src/menus.c
+++ b/src/menus.c
@@ -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);

-- 


Reply via email to