mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
f61c219ef2
* Add functionality to lock GX framebuffer aspect ratio This leaves the imgui (so including OS) framebuffer alone. AuroraWindowSize now has new fields for the native framebuffer, the aspect ratio controls modify the existing fields. * Fix from merge * fix gx_test_stubs.cpp
19 lines
829 B
C++
19 lines
829 B
C++
#include <dolphin/vi.h>
|
|
|
|
#include "../../window.hpp"
|
|
|
|
extern "C" {
|
|
void VIInit() {}
|
|
u32 VIGetTvFormat() { return 0; }
|
|
void VIFlush() {}
|
|
|
|
void VISetWindowTitle(const char* title) { aurora::window::set_title(title); }
|
|
void VISetWindowFullscreen(bool fullscreen) { aurora::window::set_fullscreen(fullscreen); }
|
|
bool VIGetWindowFullscreen() { return aurora::window::get_fullscreen(); }
|
|
void VISetWindowSize(uint32_t width, uint32_t height) { aurora::window::set_window_size(width, height); }
|
|
void VISetWindowPosition(uint32_t x, uint32_t y) { aurora::window::set_window_position(x, y); }
|
|
void VICenterWindow() { aurora::window::center_window(); }
|
|
void VILockAspectRatio(int width, int height) { return aurora::window::lock_aspect_ratio(width, height); }
|
|
void VIUnlockAspectRatio() { return aurora::window::unlock_aspect_ratio(); }
|
|
}
|