mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 10:01:46 +00:00
stop asking for authorisation in discord
This commit is contained in:
parent
71f8ba51af
commit
ebcfd94c4c
2 changed files with 2 additions and 5 deletions
|
|
@ -143,9 +143,6 @@ static void discord_initialize(void) {
|
|||
app.application = app.core->get_application_manager(app.core);
|
||||
}
|
||||
|
||||
// get oath2 token
|
||||
app.application->get_oauth2_token(app.application, NULL, get_oauth2_token_callback);
|
||||
|
||||
// set activity
|
||||
discord_activity_update();
|
||||
sDiscordFailed = false;
|
||||
|
|
|
|||
|
|
@ -134,8 +134,8 @@ void djui_gfx_render_texture_tile(const u8* texture, u32 w, u32 h, u32 bitSize,
|
|||
|
||||
// I don't know why adding 1 to all of the UVs seems to fix rendering, but it does...
|
||||
// this should be tested carefully. it definitely fixes some stuff, but what does it break?
|
||||
f32 offsetX = (font ? -1024.0f / (f32)w : 0) + 1;
|
||||
f32 offsetY = (font ? -1024.0f / (f32)h : 0) + 1;
|
||||
f32 offsetX = font ? -1024.0f / (f32)w : 1;
|
||||
f32 offsetY = font ? -1024.0f / (f32)h : 1;
|
||||
vtx[0] = (Vtx) {{{ 0, -1, 0 }, 0, { ( tileX * 2048.0f) / (f32)w + offsetX, ((tileY + tileH) * 2048.0f) / (f32)h + offsetY }, { 0xff, 0xff, 0xff, 0xff }}};
|
||||
vtx[2] = (Vtx) {{{ 1 * aspect, 0, 0 }, 0, { ((tileX + tileW) * 2048.0f) / (f32)w + offsetX, ( tileY * 2048.0f) / (f32)h + offsetY }, { 0xff, 0xff, 0xff, 0xff }}};
|
||||
vtx[1] = (Vtx) {{{ 1 * aspect, -1, 0 }, 0, { ((tileX + tileW) * 2048.0f) / (f32)w + offsetX, ((tileY + tileH) * 2048.0f) / (f32)h + offsetY }, { 0xff, 0xff, 0xff, 0xff }}};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue