Ejemplo n.º 1
0
 //not used anymore, was adding 3 lines to every widget when clicking on the treenode
 private int correct_NTSC(int y)
 {
     if (y >= osd.getCenter() && osd.is_ntsc())
     {
         y += 3;
     }
     return(y);
 }
Ejemplo n.º 2
0
        private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Left && mousedown == true)
            {
                int ansW, ansH;
                getCharLoc(e.X, e.Y, out ansW, out ansH);
                if (ansH >= osd.getCenter() && !(osd.pal_checked() || osd.auto_checked()))
                {
                    ansH += 3;
                }
                ansW -= clickX;                 //запомним куда ткнули
                ansH -= clickY;

                NUM_X.Value = Constrain(ansW, 0, osd.get_basesize().Width - 1);
                NUM_Y.Value = Constrain(ansH, 0, OSD.SCREEN_H - 1);

                pictureBox.Focus();
            }
            else
            {
                mousedown = false;
            }
        }