imtk
diff src/state.c @ 7:6d35e6c7b2ca
reorganization finished
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 14 Apr 2011 23:04:07 +0300 |
parents | 38609a9f7586 |
children |
line diff
1.1 --- a/src/state.c Thu Apr 14 14:22:42 2011 +0300 1.2 +++ b/src/state.c Thu Apr 14 23:04:07 2011 +0300 1.3 @@ -57,12 +57,18 @@ 1.4 imtk_post_redisplay(); 1.5 } 1.6 1.7 -void imtk_inp_reshape(int x, int y) 1.8 +void imtk_set_viewport(int x, int y) 1.9 { 1.10 st.scr_width = x; 1.11 st.scr_height = y; 1.12 } 1.13 1.14 +void imtk_get_viewport(int *width, int *height) 1.15 +{ 1.16 + if(width) *width = st.scr_width; 1.17 + if(height) *height = st.scr_height; 1.18 +} 1.19 + 1.20 1.21 void imtk_set_active(int id) 1.22 {