blackball / nvidia-widgets

Automatically exported from code.google.com/p/nvidia-widgets
0 stars 0 forks source link

bugfix for keyboard buffer overflow #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. calling void UIContext::keyboard(unsigned char k, int x, int y) more than 32 
times without redrawing causes the problem

    m_keyBuffer[m_nbKeys] = k;
    m_nbKeys++;

BugFix: 

    if(m_nbKeys>30) return;
    m_keyBuffer[m_nbKeys] = k;
    m_nbKeys++;

Original issue reported on code.google.com by sven.for...@gmail.com on 29 Oct 2013 at 5:12