mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-20 09:43:32 +01:00
wrlib: change default scaling interpolation to Catmull-Rom
This patch is implementing a new default Catmull-Rom filter to resize images. Catmull-Rom is a special case of cubic interpolation with B=0 and C=0.5 (in the Mitchell-Netravali formulation). It provides slighlty sharper results than Mitchell with the same performance. Catmull-Rom is a better choice for a window manager as it prioritizes sharpness, making small elements feel crisp.
This commit is contained in:
committed by
Carlos R. Mafra
parent
77db6dc649
commit
474b23344a
@@ -143,7 +143,8 @@ typedef enum {
|
||||
RBellFilter,
|
||||
RBSplineFilter,
|
||||
RLanczos3Filter,
|
||||
RMitchellFilter
|
||||
RMitchellFilter,
|
||||
RCatmullRomFilter
|
||||
} RScalingFilter;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user