- Removed the ViewDlog target (since it's deprecated by the new dialog engine)
- Renamed some things for shorter filenames - Moved the license into the doc folder - Cleaned up the project internal hierarchy so that it knows of the external file hierarchy (This should reduce the steps needed to fix bad references when a name is changed.) git-svn-id: http://openexile.googlecode.com/svn/trunk@112 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
49
pwdset/GLOBAL.CPP
Normal file
49
pwdset/GLOBAL.CPP
Normal file
@@ -0,0 +1,49 @@
|
||||
#include "global.h"
|
||||
#include "math.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
RECT RECT16::rect32()
|
||||
{
|
||||
RECT tmp;
|
||||
tmp.left = left;
|
||||
tmp.top = top;
|
||||
tmp.right = right;
|
||||
tmp.bottom = bottom;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
RECT16::RECT16 (const RECT & tmp)
|
||||
{
|
||||
left = tmp.left;
|
||||
top = tmp.top;
|
||||
right = tmp.right;
|
||||
bottom = tmp.bottom;
|
||||
}
|
||||
|
||||
RECT16 & RECT16::operator=(const RECT & tmp)
|
||||
{
|
||||
left = tmp.left;
|
||||
top = tmp.top;
|
||||
right = tmp.right;
|
||||
bottom = tmp.bottom;
|
||||
return (*this);
|
||||
}
|
||||
|
||||
short get_ran (short times,short min,short max)
|
||||
{
|
||||
short store;
|
||||
short i, to_ret = 0;
|
||||
|
||||
if ((max - min + 1) == 0)
|
||||
return 0;
|
||||
for (i = 1; i < times + 1; i++) {
|
||||
store = rand() % (max - min + 1);
|
||||
to_ret = to_ret + min + store;
|
||||
}
|
||||
return to_ret;
|
||||
}
|
||||
|
||||
short s_pow(short x,short y)
|
||||
{
|
||||
return (short) pow((double) x, (double) y);
|
||||
}
|
||||
Reference in New Issue
Block a user