mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-02 16:23:57 +03:00
Unstubbed Texture_Scroll and fixed Texture_Mottle
This commit is contained in:
parent
80c199467b
commit
ce173c122d
@ -26,6 +26,7 @@ s32 Graphics_Printf(const char* fmt, ...) {
|
||||
}
|
||||
|
||||
void Lib_Texture_Scroll(u16* texture, s32 width, s32 height, u8 mode) {
|
||||
// LTodo: [HD-Textures] This is broken
|
||||
u16* pixel = SEGMENTED_TO_VIRTUAL(texture);
|
||||
u16 tempPxl;
|
||||
s32 u;
|
||||
@ -98,7 +99,7 @@ void Lib_Texture_Mottle(u16* dst, u16* src, u8 mode) {
|
||||
break;
|
||||
|
||||
case 3:
|
||||
for (v = 0; v < 22 * 64; v += 64) { // should be 32 * 64?
|
||||
for (v = 0; v < 32 * 64; v += 64) { // should be 32 * 64?
|
||||
offset = __sinf((s32) (((v / 64) + (gGameFrameCount / 4)) % 32U) * (2 * M_PI / 8));
|
||||
for (u = 0; u < 64; u++) {
|
||||
dst[v + (offset + u) % 64U] = src[v + u];
|
||||
|
Loading…
Reference in New Issue
Block a user