Fancy, passes all of my HW tests:
Code:
u16 c2 = c+(c>>7);
s16 expected = (4*a*(256-c2) + 4*b*c2+128)>>8;
The software renderer got all of it right apart from the order of multiplication and lerp (mul first, then lerp .. not the other way around) and the +128 (i.e. "rounding" mode).
3 days worth spent, I'd say... xD
@neobrain
Now fix MP3 plz, kthx.
Well, I've been having fun recently ^_^
The results of a marathon coding spree. Until Thursday, I really had no idea what made the GBC any different from the regular DMG Game Boys. Spent 2 days doing research and prep work, then Friday night I just dove all in. The code is horrible and I'm still missing a lot of stuff, but that's why it's not in master yet and not scheduled for my emulator's 1.0 release. Speaking of that release, everything's basically done aside from packaging it and distributing the program itself. Should be releasing it in 10 more days or so (yes, with Windows executables, no one will have to compile it themselves). I'll post of video of custom sprites/bg tiles in action, once I get around to recording it.
It says it's missing libgcc <something>.dll :/
What? MinGW failed me
If you don't want to wait for a fix, you can install MinGW yourself, else I'll update the download later to include it.
EDIT: It should be fixed now. MinGW's g++ wasn't statically linking libgcc or libstdc++ like I'm used to. And no, downloading random DLLs online is not the solution.
Glad you like the idea behind GB Enhanced

You can thank AnyOldName3 for suggesting it; the concept intrigued me. I actually stumbled upon both projects a few months back. Looks like I'm not the only one who had that idea. Fwiw, there was a proof-of-concept GB emulator that did allow HD tile replacement, but it was incomplete (and I don't think it handled colorizing DMG games). I'm not exact the first when it comes to the GB, but I guess I've gone the farthest.
GB Enhanced only handles 1:1 tile replacements, but support for arbitrary scales (2:1, 3:1, 4:1, etc) is already implemented in a new branch. There are still some finishing touches that need to be applied, but it works. GBC tile replacement isn't supported yet, but that's coming soon. A shame I don't have screenshots on hand to show you any progress.