diff options
author | Paul Gilbert | 2019-08-04 19:41:05 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-08 20:10:33 -0700 |
commit | b2f6280e348aa595ee505c512e499f839b08e593 (patch) | |
tree | 6f1ab6b0352d38a3a469fc6674f58c8c9d020eb8 /engines/glk/utils.h | |
parent | 6fe59d14e5c4e592f4e1d8766c05de0f1e1989e5 (diff) | |
download | scummvm-rg350-b2f6280e348aa595ee505c512e499f839b08e593.tar.gz scummvm-rg350-b2f6280e348aa595ee505c512e499f839b08e593.tar.bz2 scummvm-rg350-b2f6280e348aa595ee505c512e499f839b08e593.zip |
GLK: Add methods for sending windows to the front/back of draw order
Diffstat (limited to 'engines/glk/utils.h')
-rw-r--r-- | engines/glk/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/glk/utils.h b/engines/glk/utils.h index 0da981abe3..636a12962e 100644 --- a/engines/glk/utils.h +++ b/engines/glk/utils.h @@ -67,6 +67,15 @@ public: return -1; } + + /** + * Remove an item from an array by value + */ + void remove(T val) { + int index = indexOf(val); + if (index != -1) + Common::Array<T>::remove_at(index); + } }; /** |