Remove HQ2X and the Image.expand_2x_hq2x() method
As of Godot 3.0, HQ2X is no longer used to upscale the editor theme and icons on hiDPI displays, which limited its effective uses. HQ2X was also used to upscale the project theme when the "Use Hidpi" project setting was enabled, but results were often less than ideal. The new StyleBoxFlat and SVG support also make HQ2X less important to have as a core feature. This decreases binary sizes slightly (-150 KB on most platforms, -212 KB on WebAssembly release). This partially addresses #12419.
This commit is contained in:
2636
thirdparty/misc/hq2x.cpp
vendored
2636
thirdparty/misc/hq2x.cpp
vendored
File diff suppressed because it is too large
Load Diff
19
thirdparty/misc/hq2x.h
vendored
19
thirdparty/misc/hq2x.h
vendored
@ -1,19 +0,0 @@
|
||||
#ifndef HQ2X_H
|
||||
#define HQ2X_H
|
||||
|
||||
#include "core/typedefs.h"
|
||||
|
||||
|
||||
uint32_t *hq2x_resize(
|
||||
const uint32_t *image,
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint32_t *output,
|
||||
uint32_t trY = 0x30,
|
||||
uint32_t trU = 0x07,
|
||||
uint32_t trV = 0x06,
|
||||
uint32_t trA = 0x50,
|
||||
bool wrapX = false,
|
||||
bool wrapY = false );
|
||||
|
||||
#endif // HQ2X_H
|
||||
Reference in New Issue
Block a user