Commit Graph

69 Commits

Author SHA1 Message Date
Stefano Ceccherini
1560418a27 forgot the \n
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-05 20:41:39 +00:00
Stefano Ceccherini
5115ca0858 Added optional debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-05 20:03:31 +00:00
Jérôme Duval
ea4f253fd6 update license headers, code style
In 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
2007-04-14 13:35:39 +00:00
Jérôme Duval
effe53fae9 fixed the wrong test for real
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 20:32:19 +00:00
Jérôme Duval
c7509fce9d improve codestyle
fix bad init in BPushGameSound


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-12 19:20:45 +00:00
Jérôme Duval
0c93c0a807 change the way FileGameSound works : avoid using a port
code style, some clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-06 22:40:23 +00:00
Stefano Ceccherini
302f626047 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
2006-10-19 10:10:06 +00:00
Ingo Weinhold
9ecf9d1c1d Merge from layout management branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-26 16:21:15 +00:00
Stefano Ceccherini
2b73985eb0 renamed class members to fit our guidelines (more or less)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-20 22:10:00 +00:00
Philippe Houdoin
af29432635 Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-11 07:53:19 +00:00
Axel Dörfler
b30d7f0e05 * Now calls BApplication::HideCursor() on creation and ShowCursor() when it's
disconnected (so that you can still just call ShowCursor() to have it back,
  in case you want that).
* Rewrote WindowScreen.h.
* Cleanup, removed unused variables, renamed private methods.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-06 17:08:12 +00:00
Axel Dörfler
3df31bf306 * Fixed SetColorList(): it set the color table as array of rgb_colors, but it's
an array with 3 byte per color only - this fixes the page_flip demo as part of
  the sample code.
* Renamed mode2parms() to get_mode_parameter(). Also, it will now return "false"
  on unknown mode values so that SetSpace() will fail instead of setting some
  random mode.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-06 13:56:15 +00:00
Axel Dörfler
f8915230d5 Removed check for fAddonImage in CanControlFrameBuffer() - according to Rudolf, this
method should return the correct value before the accelerant is cloned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-04 11:12:40 +00:00
Axel Dörfler
fe01155b84 * Removed the (200, 200) inset.
* fOldMode is now set to the current display mode.
* Now checks semaphore creations and memory allocations for failure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-04 10:55:01 +00:00
Marcus Overhagen
f7c354d7ee not sure if this helps: when the file end is reached, playback should be stopped.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-20 19:28:03 +00:00
Stefano Ceccherini
bf9071ee27 SupportsWindowMode now always return true, at least for the moment. Chart works with DirectWindow in window mode even with the vesa driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-02 15:10:43 +00:00
Stefano Ceccherini
0398e7fb64 After so much debugging, I realized that the vesa driver can't set the display mode. I'm stuck with testing till I find some other way...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-26 14:55:41 +00:00
Stefano Ceccherini
2c6856d660 more cleanups. I'll probably end up rewriting the etire header
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-26 10:16:22 +00:00
Stefano Ceccherini
5a077d3f0d Windowscreen sorta works. This should've waited till the end of Christmas holidays, but since I had to fix the build today...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-25 10:45:39 +00:00
Stefano Ceccherini
51a523b147 implemented AS_GET_ACCELERANT/DRIVER_PATH and renamed the relative constants
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-24 16:25:47 +00:00
Stefano Ceccherini
a66e501974 more cleanup. I can't seem to be able to clone the vesa accelerant so I'm a bit stuck at the moment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-24 14:20:44 +00:00
Stefano Ceccherini
ed58e05e18 Partly converted the header to our coding style, added some debug output, started to clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-24 13:06:05 +00:00
Stefano Ceccherini
2b6ac34551 Got rid of R5 code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-20 22:12:09 +00:00
Stefano Ceccherini
700b38edc4 Started porting WindowScreen to haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-20 14:31:26 +00:00
Stefano Ceccherini
4fbc3f5803 Researched and implemented BDirectWindow::SupportsWindowMode() more
correctly, both for r5 and haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-12 20:46:13 +00:00
Stefano Ceccherini
56f2fa945f Removed duplicated status variable, which would've caused the wrong value to be returned
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-11 21:55:15 +00:00
Axel Dörfler
0f4fb801b0 BDirectWindow::DirectDeamonFunc() now exits in case it couldn't acquire or
release the direct buffer handshake semaphores.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-11 20:16:42 +00:00
Axel Dörfler
71b550889e Moved dw_sync_data to a private header DirectWindowPrivate.h and renamed it to direct_window_sync_data.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 15:36:38 +00:00
Axel Dörfler
ab6a6bed3a * Renamed direct window commands
* Removed unused cruft from ServerProtocol.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 15:23:02 +00:00
Axel Dörfler
764ac9e5aa * A stripped down libgame.so is now added to the app_server test environment - it
contains code for BDirectWindow and BWindowScreen only.
* Updated BDirectWindow and BWindowScreen to no longer require the COMPILE_FOR_x
  defines - compilation for R5 is not likely to work anymore, though (the Jamfile
  didn't allow this anymore, anyway)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 14:58:39 +00:00
Stefano Ceccherini
4f6f70e059 small change, use the public methods where possible
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-03 14:26:32 +00:00
Ingo Weinhold
758b1d0e05 Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
  declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
  explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
  something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
  'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
  is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
  Otherwise the an inner class with that name is considered as friend.
  gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00
Ingo Weinhold
338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Stefano Ceccherini
feee8cf2e2 Added client side implementation of BDirectWindow (haiku). I hope I didn't break the build on Dano. If it's the case, please tell me.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-28 16:50:32 +00:00
Stefano Ceccherini
5fdea13fa5 Small cleanup, mostly style changes. Fixed a small typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 09:29:28 +00:00
Marcus Overhagen
366fdcdfbb Fixed build of libgame.so on TARGET_PLATFORM= dano or r5 so now
we can build MediaKit (which requires replacing libgame.so) for
targets haiku, r5 and dano. For building on Zeta, use platform dano.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:52:18 +00:00
Marcus Overhagen
184dd027c3 adjusted media kit library dependencies to allow compiling for R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:05:01 +00:00
Stefano Ceccherini
798fedbf9f Forgotten stuff: use B_2D_ACCELERATION instead of the value directly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:56:46 +00:00
Stefano Ceccherini
b0250ddde2 use standard api where possible, small cleanups
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:51:23 +00:00
Stefano Ceccherini
2defb213d8 Accidentally commented out a funciton, better naming of a command
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:27:46 +00:00
Stefano Ceccherini
847254d8ee BWindowScreen didn't work on r5 anymore. Replaced some stuff with BScreen::ProposeMode()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 16:21:50 +00:00
Axel Dörfler
ecc2961bee Fixed warnings and the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:23:44 +00:00
Jérôme Duval
8575beb8d6 by Stefano Ceccherini
Ifdeffed R5 specific stuff so DirectWindow.cpp and WindowScreen.cpp compile on
haiku too. That doesnt' mean they work there though.
This introduced some warnings which I didn't fix, as they'll go away later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-25 13:18:26 +00:00
Stefano Ceccherini
8f8871f95b Use definitions from WindowPrivate.h and InputServerTypes.h instead of redefining them.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 07:36:27 +00:00
Stefano Ceccherini
6f633eb2a6 Some comments on possible changes, before I forget about them. Compacted some code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:29:08 +00:00
Stefano Ceccherini
d4c31885aa Renamed sync() to card_sync() to avoid name clashing with the "sync()" function in the new unistd.h. Commented out transparent_blit() to suppress a compiler warning, and added a comment to it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:32:47 +00:00
Stefano Ceccherini
6b06287720 Some "forgotten" cleanups. Added a check for NULL in the constructor which avoids a crash in some cases.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 07:23:16 +00:00
Stefano Ceccherini
17495d0b40 Fixed some spelling errors in some comments and added more of them
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 11:14:31 +00:00
Stefano Ceccherini
3f9ae8a3ce Looks like SetFullScreen wasn't correct and could crash.
Fixed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 07:11:22 +00:00
Jérôme Duval
65de8098bc added a link in develop/lib
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 22:03:43 +00:00