Subversion Repositories Kolibri OS

Rev

Rev 9787 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9787 Rev 9789
Line 217... Line 217...
217
void kos_CheckMouseMode(_THIS)
217
void kos_CheckMouseMode(_THIS)
218
{
218
{
219
    if (this->input_grab == SDL_GRAB_OFF)
219
    if (this->input_grab == SDL_GRAB_OFF)
220
        return;
220
        return;
221
    ksys_thread_t thread_info;
221
    ksys_thread_t thread_info;
222
    int top = _ksys_thread_info(&thread_info, -1);
222
    int top = _ksys_thread_info(&thread_info, KSYS_THIS_SLOT);
Line 223... Line 223...
223
    
223
    
224
    if (top == thread_info.pos_in_window_stack) {
224
    if (top == thread_info.pos_in_window_stack) {
225
        int x = thread_info.winx_start + thread_info.clientx + this->hidden->win_size_x/2;
225
        int x = thread_info.winx_start + thread_info.clientx + this->hidden->win_size_x/2;
226
        int y = thread_info.winy_start + thread_info.clienty + this->hidden->win_size_y/2;
226
        int y = thread_info.winy_start + thread_info.clienty + this->hidden->win_size_y/2;