qt5base-lts/tests/auto/gui
Allan Sandfeld Jensen 0226795cf3 Round evenly in INV_PREMUL
Currently INV_PREMUL rounds strictly down. While PREMUL rounds evenly.

This patch adds 0x8000 to the intermediate results in INV_PREMUL before
right shifting, thereby achieving even rounding.

The rounding also makes PREMUL(INV_PREMUL()) into an identify operation,
which means we can safely convert ARGB32PM to ARGB32 and back without
ever losing color details. A test is added to verify this.

Change-Id: I1267e109caddcff0c01d726cb5c1c1e9fa5f7996
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
2014-01-29 08:54:55 +01:00
..
image Round evenly in INV_PREMUL 2014-01-29 08:54:55 +01:00
itemmodels expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
kernel Fix MSVC-warnings about double to float truncation. 2014-01-24 20:26:39 +01:00
math3d Add operator[] to QVectorND classes 2013-08-27 17:50:40 +02:00
painting Tests for semi transparent blend on opaque formats 2014-01-29 00:18:15 +01:00
qopengl Add takeTexture() to QOpenGLFramebufferObject 2014-01-07 13:04:18 +01:00
text Fix application font removal when using FontConfig 2014-01-28 19:32:40 +01:00
util Bugfix QDesktopServices on Windows 2013-07-11 10:56:49 +02:00
gui.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00