get the display scale * * This returns the content scale of the current display. * * @name window.get_display_scale * @return scale [type:number] The display scale */
| 383 | * @return scale [type:number] The display scale |
| 384 | */ |
| 385 | static int GetDisplayScale(lua_State* L) |
| 386 | { |
| 387 | DM_LUA_STACK_CHECK(L, 1); |
| 388 | |
| 389 | float scale = dmPlatform::GetDisplayScaleFactor(g_Window.m_Window); |
| 390 | lua_pushnumber(L, scale); |
| 391 | |
| 392 | return 1; |
| 393 | } |
| 394 | |
| 395 | /*# set the title of the window |
| 396 | * |
nothing calls this directly
no test coverage detected