X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fscreen.h;fp=src%2Fscreen.h;h=f5ae7533a14e21272140b32470d8b04e58fd324d;hp=c8acbcfc896606aa31311b2ca29d7318bb039c86;hb=4e0ddbcec6e182430a31e0f1c661f2c93c9e0308;hpb=d1f4d742e6634fda7c8a1e018b4f9c8ec0f4e51c diff --git a/src/screen.h b/src/screen.h index c8acbcf..f5ae753 100644 --- a/src/screen.h +++ b/src/screen.h @@ -24,8 +24,8 @@ namespace IPDF void Present(); // Get the current width/height of the window's viewport. - int ViewportWidth() { return m_viewport_width; } - int ViewportHeight() { return m_viewport_height; } + int ViewportWidth() const { return m_viewport_width; } + int ViewportHeight() const { return m_viewport_height; } // Handle mouse input. typedef std::function MouseHandler;