diff options
| -rw-r--r-- | src/common/emu_window.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/emu_window.h b/src/common/emu_window.h index 3817a7734..a9cf71690 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h | |||
| @@ -100,6 +100,8 @@ protected: | |||
| 100 | 100 | ||
| 101 | /** | 101 | /** |
| 102 | * Processes any pending configuration changes from the last SetConfig call. | 102 | * Processes any pending configuration changes from the last SetConfig call. |
| 103 | * This method invokes OnMinimalClientAreaChangeRequest if the corresponding configuration | ||
| 104 | * field changed. | ||
| 103 | * @note Implementations will usually want to call this from the GUI thread. | 105 | * @note Implementations will usually want to call this from the GUI thread. |
| 104 | */ | 106 | */ |
| 105 | void ProcessConfigurationChanges() { | 107 | void ProcessConfigurationChanges() { |
| @@ -130,7 +132,12 @@ protected: | |||
| 130 | } | 132 | } |
| 131 | 133 | ||
| 132 | private: | 134 | private: |
| 135 | /** | ||
| 136 | * Handler called when the minimal client area was requested to be changed via SetConfig. | ||
| 137 | * For the request to be honored, EmuWindow implementations will usually reimplement this function. | ||
| 138 | */ | ||
| 133 | virtual void OnMinimalClientAreaChangeRequest(const std::pair<unsigned,unsigned>& minimal_size) { | 139 | virtual void OnMinimalClientAreaChangeRequest(const std::pair<unsigned,unsigned>& minimal_size) { |
| 140 | // By default, ignore this request and do nothing. | ||
| 134 | } | 141 | } |
| 135 | 142 | ||
| 136 | std::pair<unsigned,unsigned> framebuffer_size; | 143 | std::pair<unsigned,unsigned> framebuffer_size; |