mirror of https://github.com/nmlgc/ReC98.git
[Decompilation] [th04/th05] Remove the Subpixel constructors
They just create unnecessary code when passing Subpixels by value to functions. Part of P0034, funded by zorg.
This commit is contained in:
parent
6cdd2296bb
commit
0b542125a5
|
@ -10,8 +10,6 @@ private:
|
|||
int v;
|
||||
|
||||
public:
|
||||
Subpixel() {}
|
||||
Subpixel(float screen_v) { *this = screen_v; }
|
||||
|
||||
Subpixel& operator =(float screen_v) {
|
||||
v = static_cast<int>(screen_v * 16.0f);
|
||||
|
|
Loading…
Reference in New Issue