Fixed alpha transparency on Haiku, or so it seems. Assorted other notes too.
This commit is contained in:
parent
a7aa50ae2c
commit
980b93381b
|
@ -79,6 +79,11 @@ uiArea *uiNewArea(uiAreaHandler *ah)
|
||||||
a->area->a = a;
|
a->area->a = a;
|
||||||
// TODO background color
|
// 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);
|
uiHaikuFinishNewControl(a, uiArea);
|
||||||
|
|
||||||
return a;
|
return a;
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
#include "uipriv_haiku.hpp"
|
#include "uipriv_haiku.hpp"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// TODO alpha doesn't work
|
|
||||||
|
|
||||||
struct uiDrawPath {
|
struct uiDrawPath {
|
||||||
BShape *shape;
|
BShape *shape;
|
||||||
uiDrawFillMode fillMode;
|
uiDrawFillMode fillMode;
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
// - FOS_SUPPORTSTREAMABLEITEMS doesn't seem to be supported on windows vista, or at least not with the flags we use
|
// - 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)
|
// - 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)
|
char *commonItemDialog(REFCLSID clsid, REFIID iid, FILEOPENDIALOGOPTIONS optsadd)
|
||||||
{
|
{
|
||||||
IFileDialog *d;
|
IFileDialog *d;
|
||||||
|
|
Loading…
Reference in New Issue