From 980b93381bc2942745d66e265c89f11883aaec3d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 23 Nov 2015 19:12:11 -0500 Subject: [PATCH] Fixed alpha transparency on Haiku, or so it seems. Assorted other notes too. --- haiku/area.cpp | 5 +++++ haiku/draw.cpp | 2 -- windows/stddialogs.c | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/haiku/area.cpp b/haiku/area.cpp index e8d82bbf..4c838739 100644 --- a/haiku/area.cpp +++ b/haiku/area.cpp @@ -79,6 +79,11 @@ uiArea *uiNewArea(uiAreaHandler *ah) a->area->a = a; // TODO background color + // this is needed for alpha transparency (thanks mmu_man in irc.freenode.net/#haiku) + // unfortunately TODO it kills the other compositing modes + // (remember that if we ever drop Windows 7 we can use those) + a->area->SetDrawingMode(B_OP_ALPHA); + uiHaikuFinishNewControl(a, uiArea); return a; diff --git a/haiku/draw.cpp b/haiku/draw.cpp index f957fd86..8476afc3 100644 --- a/haiku/draw.cpp +++ b/haiku/draw.cpp @@ -3,8 +3,6 @@ #include "uipriv_haiku.hpp" using namespace std; -// TODO alpha doesn't work - struct uiDrawPath { BShape *shape; uiDrawFillMode fillMode; diff --git a/windows/stddialogs.c b/windows/stddialogs.c index eeeb9cf6..c2714466 100644 --- a/windows/stddialogs.c +++ b/windows/stddialogs.c @@ -5,6 +5,9 @@ // - FOS_SUPPORTSTREAMABLEITEMS doesn't seem to be supported on windows vista, or at least not with the flags we use // - even with FOS_NOVALIDATE the dialogs will reject invalid filenames (at least on Vista, anyway) +// TODO +// - http://blogs.msdn.com/b/wpfsdk/archive/2006/10/26/uncommon-dialogs--font-chooser-and-color-picker-dialogs.aspx + char *commonItemDialog(REFCLSID clsid, REFIID iid, FILEOPENDIALOGOPTIONS optsadd) { IFileDialog *d;