Search
lxdream.org :: lxdream :: r786:8f6ece92500e
lxdream 0.9.1
released Jun 29
Download Now
changeset786:8f6ece92500e
parent785:00235838aaec
child787:6717c02ff81f
authornkeynes
dateTue Jul 29 08:51:10 2008 +0000 (11 years ago)
Fix minor warnings
src/cocoaui/cocoa_win.c
src/drivers/audio_osx.c
src/drivers/cd_osx.c
src/drivers/osx_iokit.h
src/drivers/video_nsgl.h
1.1 --- a/src/cocoaui/cocoa_win.c Tue Jul 29 08:50:49 2008 +0000
1.2 +++ b/src/cocoaui/cocoa_win.c Tue Jul 29 08:51:10 2008 +0000
1.3 @@ -18,6 +18,7 @@
1.4
1.5 #include "cocoaui/cocoaui.h"
1.6 #include "lxdream.h"
1.7 +#include "dreamcast.h"
1.8 #include <ApplicationServices/ApplicationServices.h>
1.9
1.10 @interface NSWindow (OSX10_5_and_later)
2.1 --- a/src/drivers/audio_osx.c Tue Jul 29 08:50:49 2008 +0000
2.2 +++ b/src/drivers/audio_osx.c Tue Jul 29 08:51:10 2008 +0000
2.3 @@ -97,8 +97,8 @@
2.4 output_buffer = buffer;
2.5 output_buffer->posn = 0;
2.6 AudioDeviceStart(output_device, audio_osx_callback);
2.7 - return FALSE;
2.8 }
2.9 + return FALSE;
2.10 }
2.11
2.12 void audio_osx_start()
3.1 --- a/src/drivers/cd_osx.c Tue Jul 29 08:50:49 2008 +0000
3.2 +++ b/src/drivers/cd_osx.c Tue Jul 29 08:51:10 2008 +0000
3.3 @@ -158,7 +158,7 @@
3.4 {
3.5 gdrom_image_t image = (gdrom_image_t)disc;
3.6 int real_lba = lba - 150;
3.7 - int sector_size;
3.8 + int sector_size = 2352;
3.9 int direct_read = 1;
3.10 char data[MAX_SECTOR_SIZE];
3.11 osx_cdrom_drive_t drive = OSX_DRIVE(disc);
4.1 --- a/src/drivers/osx_iokit.h Tue Jul 29 08:50:49 2008 +0000
4.2 +++ b/src/drivers/osx_iokit.h Tue Jul 29 08:51:10 2008 +0000
4.3 @@ -77,4 +77,14 @@
4.4 */
4.5 void osx_cdrom_close_drive( osx_cdrom_drive_t drive );
4.6
4.7 +/**
4.8 + * Install the notifications and handlers needed by the IOKit support layer.
4.9 + * Must be called before trying to use any of the functions above.
4.10 + */
4.11 +gboolean osx_register_iokit_notifications();
4.12 +/**
4.13 + * Uninstall the notifications and handlers in the IOKit support layer
4.14 + */
4.15 +void osx_unregister_iokit_notifications();
4.16 +
4.17 #endif /* !lxdream_osx_iokit_H */
5.1 --- a/src/drivers/video_nsgl.h Tue Jul 29 08:50:49 2008 +0000
5.2 +++ b/src/drivers/video_nsgl.h Tue Jul 29 08:51:10 2008 +0000
5.3 @@ -42,6 +42,11 @@
5.4 */
5.5 void video_nsgl_swap_buffers();
5.6
5.7 +/**
5.8 + * Update the NSGL context after a window change
5.9 + */
5.10 +void video_nsgl_update();
5.11 +
5.12 #ifdef __cplusplus
5.13 }
5.14 #endif
.