diff --git a/upptst/AlphaBlendDeviceCaps/AlphaBlendDeviceCaps.upp b/upptst/AlphaBlendDeviceCaps/AlphaBlendDeviceCaps.upp new file mode 100644 index 000000000..5872304d3 --- /dev/null +++ b/upptst/AlphaBlendDeviceCaps/AlphaBlendDeviceCaps.upp @@ -0,0 +1,9 @@ +uses + CtrlLib; + +file + main.cpp; + +mainconfig + "" = "GUI"; + diff --git a/upptst/AlphaBlendDeviceCaps/main.cpp b/upptst/AlphaBlendDeviceCaps/main.cpp new file mode 100644 index 000000000..fb3ae4dd5 --- /dev/null +++ b/upptst/AlphaBlendDeviceCaps/main.cpp @@ -0,0 +1,8 @@ +#include + +using namespace Upp; + +GUI_APP_MAIN +{ + DDUMP(GetDeviceCaps(GetDC(NULL), SHADEBLENDCAPS) & SB_PIXEL_ALPHA); +} diff --git a/upptst/Blur/main.cpp b/upptst/Blur/main.cpp index 762257f34..863b97254 100644 --- a/upptst/Blur/main.cpp +++ b/upptst/Blur/main.cpp @@ -11,7 +11,7 @@ struct MyApp : TopWindow { void Sync() { double tm = (double)usecs(); - imgb = GaussianBlur(img, ~radius, co); + imgb = Grayscale(img); // GaussianBlur(img, ~radius, co); tm = (double)usecs() - tm; Title(String() << tm << " us"); Refresh();