Subversion Repositories Kolibri OS

Rev

Rev 8133 | Rev 8184 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8133 Rev 8170
Line 105... Line 105...
105
GenerateParam generate = {0, 0, 0, 0, false, PaintWNull, 0};
105
GenerateParam generate = {0, 0, 0, 0, false, PaintWNull, 0};
106
AxisParam xpar = {0, 0, 0};
106
AxisParam xpar = {0, 0, 0};
107
AxisParam ypar = {0, 0, 0};
107
AxisParam ypar = {0, 0, 0};
108
MouseParam mpar = {0, 0, 0, 0, 0, MouseParam::HitNull};
108
MouseParam mpar = {0, 0, 0, 0, 0, MouseParam::HitNull};
109
MenuParam menu;
109
MenuParam menu;
110
TOpenFileStruct open_file_str = MENUET_OPEN_FILE_INIT;
110
TOpenFileStruct open_file_str = KOLIBRI_OPEN_FILE_INIT;
111
TimeGeneration timegen[TimeGenLength];
111
TimeGeneration timegen[TimeGenLength];
112
int timegenpos = 0;
112
int timegenpos = 0;
Line 113... Line 113...
113
 
113
 
Line 114... Line 114...
114
#ifdef __MENUET__
114
#ifdef __KOLIBRI__
Line 115... Line 115...
115
 
115
 
Line 1948... Line 1948...
1948
			else PoleMouseClick(m, th);
1948
			else PoleMouseClick(m, th);
1949
		}
1949
		}
1950
	}
1950
	}
1951
	mpar.button = m;
1951
	mpar.button = m;
1952
}
1952
}
1953
 
-
 
1954
#ifndef __MENUET__
-
 
1955
 
-
 
1956
#include 
-
 
1957
 
-
 
1958
void __stdcall (*DllOneGeneration)(int w, int h, void *dest, const void *src, int flag) = 0;
-
 
1959
 
-
 
1960
void DllInit()
-
 
1961
{
-
 
1962
	HINSTANCE hLib = LoadLibrary("LifeGen.dll");
-
 
1963
	if (!hLib)
-
 
1964
	{
-
 
1965
		DebugPutString("Can't load the library.\n");
-
 
1966
		Kolibri::Abort();
-
 
1967
	}
-
 
1968
	DllOneGeneration = (void(__stdcall*)(int, int, void*, const void*, int))GetProcAddress(hLib, "OneGeneration");
-
 
1969
	if (!DllOneGeneration)
-
 
1970
	{
-
 
1971
		DebugPutString("Can't get a library function.\n");
-
 
1972
		Kolibri::Abort();
-
 
1973
	}
-
 
1974
}
-
 
1975
 
-
 
1976
void __stdcall OneGeneration(int w, int h, void *dest, const void *src, int flag)
-
 
1977
{
-
 
1978
	if (!DllOneGeneration) DllInit();
-
 
1979
	DllOneGeneration(w, h, dest, src, flag);
-
 
1980
}
-
 
1981
 
-
 
1982
#endif
-
 
1983
-