fixed buffer overrun, CID 649git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27446 a95241bf-73f2-0310-859d-f6bbb57e9c96
style cleanupgit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25177 a95241bf-73f2-0310-859d-f6bbb57e9c96
* Cleaned up InterfaceDefs.h, added TODO about getting rid of declaring _init_interface_kit_() in there.* Moved private get_mode_parameter() into the BPrivate namespace.* Renamed interface_misc.h
* Cleaned up InterfaceDefs.h, added TODO about getting rid of declaring _init_interface_kit_() in there.* Moved private get_mode_parameter() into the BPrivate namespace.* Renamed interface_misc.h to InterfacePrivate.h.* Minor other cleanup.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24869 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
Added more conditional debug output, taken from the dw_info test app.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23730 a95241bf-73f2-0310-859d-f6bbb57e9c96
delete the semaphore instead of releasing it, otherwise DirectConnected() could be called twice with B_DIRECT_STOP when closing the BDirectWindow.git-svn-id: file:///srv/svn/repos/haiku/haiku/tr
delete the semaphore instead of releasing it, otherwise DirectConnected() could be called twice with B_DIRECT_STOP when closing the BDirectWindow.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23718 a95241bf-73f2-0310-859d-f6bbb57e9c96
malloc.h ain't no standard header. Use stdlib.h instead.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22776 a95241bf-73f2-0310-859d-f6bbb57e9c96
Rewrote DirectWindow.h, updated DirectWindow.cpp accordingly.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22659 a95241bf-73f2-0310-859d-f6bbb57e9c96
* just realized a bug already when reading over the commit log...git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21666 a95241bf-73f2-0310-859d-f6bbb57e9c96
* complete reimplementation of BRegion and it's backendI "ported" the region implementation from XOrg to work on BRegion data.This resulted in pretty much the same code structure as before, with
* complete reimplementation of BRegion and it's backendI "ported" the region implementation from XOrg to work on BRegion data.This resulted in pretty much the same code structure as before, with RegionSupport.cpp containing the messy details. Only now it _is_ really messyfrom a code beauty point of view. I didn't exactly feel like cleaning itup right now... but I guess I will have to.So what does this mean - our BRegion implementation was very slow (no offense!),and on top of that it scaled very badly with more and more rects. The newimplementation seems to be on par with the very fast R5 implementation andthe data looks exactly the same too. BRegion is very performance criticalfor the app_server, and I cannot wait to try this on my slow computer...Some changes are noteworthy: The right and bottom coordinates ofBRegion internal data are now exclusive! I inherited that from theXOrg implementation and didn't feel like changing the code, seeing itis probably tested quite well. The conversion is handled transparently.Secondly, constructing a BRegion with just one rect is not invokingmalloc anymore for the member data, this makes it much more efficientto use temporary BRegions with just one rect, both externally and internallyin the BRegion implementation.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21665 a95241bf-73f2-0310-859d-f6bbb57e9c96
Fixed problems with try/catch, hopefully. Thanks Axel for pointing them out.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21486 a95241bf-73f2-0310-859d-f6bbb57e9c96
moved duplicate code to a common location.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21459 a95241bf-73f2-0310-859d-f6bbb57e9c96
splitted SetActiveState() into 2 methods, since it was very messygit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21454 a95241bf-73f2-0310-859d-f6bbb57e9c96
free() the modelist as it's allocated using malloc. A forgotten printf -> fprintf. minor other stuff.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21452 a95241bf-73f2-0310-859d-f6bbb57e9c96
Used exceptions to handle errors on InitData(). I hope I didn't made stupid errors, since I don't use exceptions usually. Feel free to beat me on this. Moved uninitialization to _DisposeData(). Cor
Used exceptions to handle errors on InitData(). I hope I didn't made stupid errors, since I don't use exceptions usually. Feel free to beat me on this. Moved uninitialization to _DisposeData(). Corrected some styling issues pointed out by axel. Used fprintf instead of printf.Turned off debugging.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21450 a95241bf-73f2-0310-859d-f6bbb57e9c96
Call get_clone_info and get_clone_info_size instead of using the driver's path. More correct. Now we could remove the app_server's command to retrieve the driver's path.git-svn-id: file:///srv/
Call get_clone_info and get_clone_info_size instead of using the driver's path. More correct. Now we could remove the app_server's command to retrieve the driver's path.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21408 a95241bf-73f2-0310-859d-f6bbb57e9c96
don't try to stop a non inited BFileGameSoundnow stops BFileGameSound at the end of the track if not loopingGameSoundDevice now checks the sound_id is validadded a header include in GSUtility.h
don't try to stop a non inited BFileGameSoundnow stops BFileGameSound at the end of the track if not loopingGameSoundDevice now checks the sound_id is validadded a header include in GSUtility.h git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21221 a95241bf-73f2-0310-859d-f6bbb57e9c96
finally fixed debug outputgit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21061 a95241bf-73f2-0310-859d-f6bbb57e9c96
forgot the \ngit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21036 a95241bf-73f2-0310-859d-f6bbb57e9c96
Added optional debug outputgit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21035 a95241bf-73f2-0310-859d-f6bbb57e9c96
update license headers, code styleIn BPushGameSound, SetParameter and SetStreamHook return B_UNSUPPORTED while Perform calls the parent class.Moved code to the constructor.git-svn-id: file:///sr
update license headers, code styleIn BPushGameSound, SetParameter and SetStreamHook return B_UNSUPPORTED while Perform calls the parent class.Moved code to the constructor.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20682 a95241bf-73f2-0310-859d-f6bbb57e9c96
fixed the wrong test for realgit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20671 a95241bf-73f2-0310-859d-f6bbb57e9c96
improve codestylefix bad init in BPushGameSoundgit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20670 a95241bf-73f2-0310-859d-f6bbb57e9c96
change the way FileGameSound works : avoid using a portcode style, some clean upgit-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20603 a95241bf-73f2-0310-859d-f6bbb57e9c96
Fixed a typo introduced when I renamed the class members. The source area was checked instead of the cloned one.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19080 a95241bf-73f2-0310-859d-f6b
Fixed a typo introduced when I renamed the class members. The source area was checked instead of the cloned one.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19080 a95241bf-73f2-0310-859d-f6bbb57e9c96
Merge from layout management branch.git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
1234567