mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:00:48 +00:00
minor amd64 fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22306 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
272297f598
commit
6b38e343fe
2 changed files with 13 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-01-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSWindow.m: minor fixups for 64bit cpu support.
|
||||||
|
|
||||||
2006-01-09 06:25 Gregory John Casamento <greg_casamento@yahoo.com>
|
2006-01-09 06:25 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSNib.m: Correction for bug#15348. Removed uneeded
|
* Source/NSNib.m: Correction for bug#15348. Removed uneeded
|
||||||
|
|
|
@ -695,7 +695,7 @@ many times.
|
||||||
{
|
{
|
||||||
[_wv setWindowNumber: 0];
|
[_wv setWindowNumber: 0];
|
||||||
[GSServerForWindow(self) termwindow: _windowNum];
|
[GSServerForWindow(self) termwindow: _windowNum];
|
||||||
NSMapRemove(windowmaps, (void*)_windowNum);
|
NSMapRemove(windowmaps, (void*)(intptr_t)_windowNum);
|
||||||
_windowNum = 0;
|
_windowNum = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -792,7 +792,7 @@ many times.
|
||||||
: _styleMask
|
: _styleMask
|
||||||
: screenNumber];
|
: screenNumber];
|
||||||
[srv setwindowlevel: [self level] : _windowNum];
|
[srv setwindowlevel: [self level] : _windowNum];
|
||||||
NSMapInsert (windowmaps, (void*)_windowNum, self);
|
NSMapInsert (windowmaps, (void*)(intptr_t)_windowNum, self);
|
||||||
|
|
||||||
// Set window in new _gstate
|
// Set window in new _gstate
|
||||||
DPSgsave(context);
|
DPSgsave(context);
|
||||||
|
@ -3330,8 +3330,8 @@ resetCursorRectsForView(NSView *theView)
|
||||||
\
|
\
|
||||||
if ([target respondsToSelector: sel]) \
|
if ([target respondsToSelector: sel]) \
|
||||||
{ \
|
{ \
|
||||||
action = (int)[target performSelector: sel \
|
action = (intptr_t)[target performSelector: sel \
|
||||||
withObject: info]; \
|
withObject: info]; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4240,7 +4240,7 @@ resetCursorRectsForView(NSView *theView)
|
||||||
- (void *) windowHandle
|
- (void *) windowHandle
|
||||||
{
|
{
|
||||||
// Should only be defined on MS Windows
|
// Should only be defined on MS Windows
|
||||||
return (void *)_windowNum;
|
return (void *)(intptr_t)_windowNum;
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -4344,13 +4344,13 @@ void NSCountWindows(int *count)
|
||||||
void NSWindowList(int size, int list[])
|
void NSWindowList(int size, int list[])
|
||||||
{
|
{
|
||||||
NSMapEnumerator me = NSEnumerateMapTable(windowmaps);
|
NSMapEnumerator me = NSEnumerateMapTable(windowmaps);
|
||||||
int num;
|
void *key;
|
||||||
id win;
|
id win;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
while (i < size && NSNextMapEnumeratorPair(&me, (void*)&num, (void*)&win))
|
while (i < size && NSNextMapEnumeratorPair(&me, &key, (void*)&win))
|
||||||
{
|
{
|
||||||
list[i++] = num;
|
list[i++] = (intptr_t)key;
|
||||||
}
|
}
|
||||||
/* FIXME - the list produced should be in window stacking order */
|
/* FIXME - the list produced should be in window stacking order */
|
||||||
}
|
}
|
||||||
|
@ -4364,5 +4364,5 @@ NSArray* GSAllWindows(void)
|
||||||
|
|
||||||
NSWindow* GSWindowWithNumber(int num)
|
NSWindow* GSWindowWithNumber(int num)
|
||||||
{
|
{
|
||||||
return (NSWindow*)NSMapGet(windowmaps, (void*)num);
|
return (NSWindow*)NSMapGet(windowmaps, (void*)(intptr_t)num);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue