10:9 ratio with filter on gb
wzhy90 opened this issue · 3 comments
wzhy90 commented
Hi again. In new version gb emulator add scaling mode and filter, but atm the orginal ratio didnt have filter feature.
I try to change resolution in gb_main.c at "screen_blit_bilinear". while I change w2 and dst_img.w to 266 and hpad to 14, the image will move to the center of screen, but it cut out 14x240 pixel at the right of image, how to fix this?
kbeckmann commented
The bilinear scaling code is a bit of a hack, so it didn't handle padding well.
You have motivated me to add a few more scaling options in 017e2c7
- Fit + Soft -> bilinear scaling (this is what you are requesting, right?)
- Full + Off -> NN scaling
Please try it out and let me know if it's what you expect.
wzhy90 commented
yeap, that's what I want. BTW, is it possible to add 266x240 resolution to "screen_blit_v3to5" filter?
kbeckmann commented
Yeah it can be done but requires a bit of effort 🙂