Add a function to fetch the texture display config from texture viewer

This commit is contained in:
baldurk
2026-08-13 17:46:46 +01:00
parent 7d2477026a
commit 2d0ba78a49
3 changed files with 12 additions and 0 deletions
@@ -964,6 +964,10 @@ struct ITextureViewerInvoker : UIThreadInvoker<ITextureViewer>
return InvokeVoidFunction(&ITextureViewer::SetTextureOverlay, overlay);
}
bool IsZoomAutoFit() { return InvokeRetFunction<bool>(&ITextureViewer::IsZoomAutoFit); }
TextureDisplay GetTextureDisplay()
{
return InvokeRetFunction<TextureDisplay>(&ITextureViewer::GetTextureDisplay);
}
float GetZoomLevel() { return InvokeRetFunction<float>(&ITextureViewer::GetZoomLevel); }
void SetZoomLevel(bool autofit, float zoom)
{