Page 1 of 1

Source code patch for enabling contrast text on Win XP?

Posted: Mon Jan 11, 2021 1:50 pm
by Alex654
Hello,

Could you please provide the changes in code that make the text look better (which is described on this page: https://browser.taokaizen.com/chrome-directwrite/)?

I want to compile the patched version myself (based on sources of v49), compare binaries with the official build, find the difference and try to hex-patch original Chrome 49.

For now I can't compare binaries because the last Windows XP compatible version (v54) contains code from Chrome 48, 52 and 54, so it's very hard to analyse it anyway. Also most of the changes cover downloads behavior, which is not what I need.

Thanks in advance :)

Re: Source code patch for enabling contrast text on Win XP?

Posted: Mon Jan 11, 2021 7:12 pm
by admin
Hello, to make the text look better you just need to change gamma parameter on skia, this is for version 80+

Depending on the version I had to do different tricks, for older versions you need to enable GDI because you won't find skia gamma, I don't remember how to enable GDI on older builds.

Re: Source code patch for enabling contrast text on Win XP?

Posted: Thu Jan 21, 2021 5:39 am
by Alex654
Then why there is nothing in your patch connected with gamma? I just don't know what to change... Also, wasn't GDI support removed in version 22 completely from Chromium sources when the text became blurry for the first time?

Re: Source code patch for enabling contrast text on Win XP?

Posted: Thu Jan 21, 2021 6:14 am
by admin
Because that is a different repo, to modify gamma you need to work on third party/skia and that is a different repo, it is a pain to have different repos and a diff on main repo won't include childs, so I have to patch skia manually everytime.