Foros del Web » Programación para mayores de 30 ;) » Programación General »

help con un bug

Estas en el tema de help con un bug en el foro de Programación General en Foros del Web. hola un programador creo lo siguiente: Código PHP: int originalmouseparms [ 3 ],  newmouseparms [ 3 ] = {  0 ,  0 ,  1  },  newmouseparmsXP [ 3 ...
  #1 (permalink)  
Antiguo 04/07/2003, 13:26
Gen
 
Fecha de Ingreso: noviembre-2002
Mensajes: 39
Antigüedad: 21 años, 5 meses
Puntos: 0
help con un bug

hola un programador creo lo siguiente:
Código PHP:
int originalmouseparms[3], newmouseparms[3] = { 00}, newmouseparmsXP[3] = {000}; 

void IN_ActivateMouse(void

    
int widthheight
    
BOOL success
    
OSVERSIONINFO osver

    
// NiceAss: reset mouse settings if m_xp changes 
    
if( m_xp->modified 
    { 
        
mouseactive false
        
m_xp->modified false
    } 

    if (!
mouseinitialized
        return; 

    if (!
in_mouse->value)
    { 
        
mouseactive false
        return; 
    } 
    if (
mouseactive
        return; 

    
mouseactive true

    
memset(&osver0sizeof(OSVERSIONINFO)); 
    
osver.dwOSVersionInfoSize sizeof(OSVERSIONINFO); 
    
success GetVersionEx(&osver); 

    if (
mouseparmsvalid)
    { 
        
// WinXP is NT and version 5.1 
        
if (success && osver.dwPlatformId == VER_PLATFORM_WIN32_NT && osver.dwMajorVersion == && osver.dwMinorVersion == && m_xp->value)
        { 
            
restore_spi SystemParametersInfo(SPI_SETMOUSE0newmouseparmsXP0); 
        }
        else
        { 
            
restore_spi SystemParametersInfo(SPI_SETMOUSE0newmouseparms0); 
        } 
    } 

    
width GetSystemMetrics(SM_CXSCREEN); 
    
height GetSystemMetrics(SM_CYSCREEN); 

    
GetWindowRect(cl_hwnd, &window_rect); 
    if (
window_rect.left 0
          
window_rect.left 0
    if (
window_rect.top 0
        
window_rect.top 0
    if (
window_rect.right >= width
        
window_rect.right width 1
    if (
window_rect.bottom >= height 1
        
window_rect.bottom height 1

    
window_center_x = (window_rect.right window_rect.left) / 2
    
window_center_y = (window_rect.top window_rect.bottom) / 2

    
SetCursorPos(window_center_xwindow_center_y); 

    
old_x window_center_x
    
old_y window_center_y

    
SetCapture(cl_hwnd); 
    
ClipCursor(&window_rect); 
    while (
ShowCursor(FALSE) >= 0); 

el problema es que tiene un bug y no sabe cual es el dicho bug ojala puedan colaborar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:01.