From 111f40f875b11da76242ce874baabeb245a15108 Mon Sep 17 00:00:00 2001 From: stephena Date: Wed, 11 Aug 2010 22:51:22 +0000 Subject: [PATCH] Updated comments on setAppWindowPos, to clearly indicate that the method is only used in windowed mode. This eases the requirements of the method, since fullscreen code need not be added. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2094 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/emucore/OSystem.hxx | 4 +++- src/unix/OSystemUNIX.hxx | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/emucore/OSystem.hxx b/src/emucore/OSystem.hxx index bb6bece4d..11c93f5f2 100644 --- a/src/emucore/OSystem.hxx +++ b/src/emucore/OSystem.hxx @@ -446,7 +446,9 @@ class OSystem /** Set the position of the application window, generally using - platform-specific code. + platform-specific code. Note that this method is only ever + called for windowed mode, so no provisions need be made + for fullscreen mode. */ virtual void setAppWindowPos(int x, int y, int w, int h) { }; diff --git a/src/unix/OSystemUNIX.hxx b/src/unix/OSystemUNIX.hxx index 4d1178839..e5021f35d 100644 --- a/src/unix/OSystemUNIX.hxx +++ b/src/unix/OSystemUNIX.hxx @@ -41,7 +41,11 @@ class OSystemUNIX : public OSystem */ virtual ~OSystemUNIX(); - /** Move X11 window to given position. */ + public: + /** + Move X11 window to given position. Width and height are not + used (or modified). + */ void setAppWindowPos(int x, int y, /* not used*/ int, int); };