Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win64
mingw64-inkscape
inkscape-0.91-abs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File inkscape-0.91-abs.patch of Package mingw64-inkscape
--- inkscape-0.91/src/libavoid/connector.cpp 2017-07-19 02:17:21.350045669 +0200 +++ inkscape-0.91/src/libavoid/connector.cpp 2017-07-19 02:18:57.194044756 +0200 @@ -885,7 +885,7 @@ { // Check for consecutive points on opposite // corners of two touching shapes. - COLA_ASSERT(abs(i->pathNext->id.objID - i->id.objID) != 2); + COLA_ASSERT(abs((int)(i->pathNext->id.objID - i->id.objID)) != 2); } } } --- inkscape-0.91/src/ui/tools/flood-tool.cpp 2017-07-19 02:17:21.378045669 +0200 +++ inkscape-0.91/src/ui/tools/flood-tool.cpp 2017-07-19 02:18:46.506044858 +0200 @@ -252,13 +252,13 @@ switch (method) { case FLOOD_CHANNELS_ALPHA: - return abs(static_cast<int>(ac) - ao) <= threshold; + return abs(static_cast<int>(ac) - static_cast<int>(ao)) <= threshold; case FLOOD_CHANNELS_R: - return abs(static_cast<int>(ac ? unpremul_alpha(rc, ac) : 0) - (ao ? unpremul_alpha(ro, ao) : 0)) <= threshold; + return abs(static_cast<int>(ac ? unpremul_alpha(rc, ac) : 0) - static_cast<int>(ao ? unpremul_alpha(ro, ao) : 0)) <= threshold; case FLOOD_CHANNELS_G: - return abs(static_cast<int>(ac ? unpremul_alpha(gc, ac) : 0) - (ao ? unpremul_alpha(go, ao) : 0)) <= threshold; + return abs(static_cast<int>(ac ? unpremul_alpha(gc, ac) : 0) - static_cast<int>(ao ? unpremul_alpha(go, ao) : 0)) <= threshold; case FLOOD_CHANNELS_B: - return abs(static_cast<int>(ac ? unpremul_alpha(bc, ac) : 0) - (ao ? unpremul_alpha(bo, ao) : 0)) <= threshold; + return abs(static_cast<int>(ac ? unpremul_alpha(bc, ac) : 0) - static_cast<int>(ao ? unpremul_alpha(bo, ao) : 0)) <= threshold; case FLOOD_CHANNELS_RGB: guint32 amc, rmc, bmc, gmc; //amc = 255*255 - (255-ac)*(255-ad); amc = (amc + 127) / 255; @@ -268,9 +268,9 @@ gmc = (255-ac)*gd + 255*gc; gmc = (gmc + 127) / 255; bmc = (255-ac)*bd + 255*bc; bmc = (bmc + 127) / 255; - diff += abs(static_cast<int>(amc ? unpremul_alpha(rmc, amc) : 0) - (amop ? unpremul_alpha(rmop, amop) : 0)); - diff += abs(static_cast<int>(amc ? unpremul_alpha(gmc, amc) : 0) - (amop ? unpremul_alpha(gmop, amop) : 0)); - diff += abs(static_cast<int>(amc ? unpremul_alpha(bmc, amc) : 0) - (amop ? unpremul_alpha(bmop, amop) : 0)); + diff += abs(static_cast<int>(amc ? unpremul_alpha(rmc, amc) : 0) - static_cast<int>(amop ? unpremul_alpha(rmop, amop) : 0)); + diff += abs(static_cast<int>(amc ? unpremul_alpha(gmc, amc) : 0) - static_cast<int>(amop ? unpremul_alpha(gmop, amop) : 0)); + diff += abs(static_cast<int>(amc ? unpremul_alpha(bmc, amc) : 0) - static_cast<int>(amop ? unpremul_alpha(bmop, amop) : 0)); return ((diff / 3) <= ((threshold * 3) / 4)); case FLOOD_CHANNELS_H:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor