mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 17:17:09 -04:00
Better Mac OS 6 compatibility
This commit is contained in:
parent
79078b7cc6
commit
ed1eb7265e
@ -18,6 +18,6 @@ resource 'SIZE' (-1) {
|
||||
reserved,
|
||||
reserved,
|
||||
reserved,
|
||||
8192 * 1024,
|
||||
3072 * 1024,
|
||||
8192 * 1024
|
||||
};
|
||||
|
@ -27,6 +27,6 @@ resource 'SIZE' (-1) {
|
||||
reserved,
|
||||
reserved,
|
||||
reserved,
|
||||
8192 * 1024,
|
||||
3072 * 1024,
|
||||
8192 * 1024
|
||||
};
|
||||
|
@ -141,10 +141,15 @@ void DateTime_CurrentLocal(struct DateTime* t) {
|
||||
/*########################################################################################################################*
|
||||
*--------------------------------------------------------Stopwatch--------------------------------------------------------*
|
||||
*#########################################################################################################################*/
|
||||
#define NS_PER_SEC 1000000000ULL
|
||||
#define MS_PER_SEC 1000000ULL
|
||||
|
||||
cc_uint64 Stopwatch_Measure(void) {
|
||||
//return TickCount();
|
||||
if (sysVersion < 0x7000) {
|
||||
// 60 ticks a second
|
||||
cc_uint64 count = TickCount();
|
||||
return count * MS_PER_SEC / 60;
|
||||
}
|
||||
|
||||
UnsignedWide count;
|
||||
Microseconds(&count);
|
||||
return (cc_uint64)count.lo | ((cc_uint64)count.hi << 32);
|
||||
|
@ -81,6 +81,7 @@ void Window_PreInit(void) {
|
||||
long tmpLong = 0;
|
||||
Gestalt(gestaltQuickdrawVersion, &tmpLong);
|
||||
hasColorQD = tmpLong >= gestalt32BitQD;
|
||||
if (!hasColorQD) Platform_LogConst("RUNNING IN SLOW MODE");
|
||||
}
|
||||
|
||||
void Window_Init(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user