Definition at line 44 of file transform.cpp.
44 {
46
47
49 if (max_value) {
50
51 uint32_t numer = static_cast<uint32_t>(max_value) << 16;
52
53 uint32_t scale32 = numer / 0xFFFF;
55 }
58 tx.offset_x = 0;
59 tx.offset_y = 0;
60 tx.rotation = 0;
61 return tx;
62}
LIB8STATIC uint16_t scale16(uint16_t i, fract16 scale)
Scale a 16-bit unsigned value by an 16-bit value, which is treated as the numerator of a fraction who...
References Transform16(), offset_x, offset_y, rotation, scale16(), scale_x, and scale_y.
Referenced by From().