Changeset 700


Ignore:
Timestamp:
Mar 27, 2006, 8:17:09 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed OpenGL mouse handling

Sam Le Vieux Porc

(\/)

Le / @@ \ Le

( (oo) )

`-..-' Vieux

Vieux / \

@/ \_

(/ / \ \) Porc

Porc WW`----'WW

Sam Le Vieux Porc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_gl.c

    r698 r700  
    462462    kk->drv.p->mouse_x = x / kk->drv.p->font_width;
    463463    kk->drv.p->mouse_y = y / kk->drv.p->font_height;
     464    kk->mouse.x = kk->drv.p->mouse_x;
     465    kk->mouse.y = kk->drv.p->mouse_y;
    464466    kk->drv.p->mouse_changed = 1;
    465467}
     
    468470{
    469471    caca_t *kk = gl_kk;
    470 
    471472    kk->drv.p->mouse_x = x / kk->drv.p->font_width;
    472473    kk->drv.p->mouse_y = y / kk->drv.p->font_height;
     474    kk->mouse.x = kk->drv.p->mouse_x;
     475    kk->mouse.y = kk->drv.p->mouse_y;
    473476    kk->drv.p->mouse_changed = 1;
    474477}
Note: See TracChangeset for help on using the changeset viewer.