working GDI detection, v compatible

parameter compatible with PixelGetColor