26945 Commits

Author SHA1 Message Date
Axel Dörfler
ab8b37cf9f * Fixed another check, the warning "first free too late" was printed even
though there was no problem.
* Nevertheless, improved output of that warning :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28121 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28121
2008-10-15 08:49:53 +00:00
Michael Lotz
39e9e0e43b Fix typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28120 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28120
2008-10-15 08:08:31 +00:00
Michael Lotz
c2b295654c Initialize the parameters to NULL so that a later reload doesn't try to free
uninitialized memory. Fixes a crash on boot with a preloaded settings file
present that wasn't used before the boot device was available (like the vm
settings file).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28119 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28119
2008-10-15 08:06:30 +00:00
Rene Gollent
1138737b87 Fix regression introduced in r28116: Due to the change in variable names, the
wrong version of ConvertFromScreen() was now used, resulting in the calculation
being computed and thrown away. This broke BMenu, probably amongst other things.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28118 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28118
2008-10-15 01:59:39 +00:00
Axel Dörfler
b06a5d91f9 * Fixed a bad bug (that I introduced with one of the last commits...) that
could check memory beyond the block and then tried to allocate that on the
  correct block (would possibly lead to KDL).
* Made AllocationBlock::Allocate() and Free() inline.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28117 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28117
2008-10-15 01:21:31 +00:00
Axel Dörfler
0945268d80 * GetMouse() now survives being called with NULL parameters for location or
buttons.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28116 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28116
2008-10-15 00:02:54 +00:00
Axel Dörfler
8cc45109d2 * Fixed build when DEBUG_ALLOCATION_GROUPS is not defined, thanks Rene.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28115 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28115
2008-10-14 22:58:21 +00:00
Axel Dörfler
98ec129e53 * I obviously need some sleep: messed up the fix, and forgot some parenthesis...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28114 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28114
2008-10-14 22:49:13 +00:00
Axel Dörfler
4986b5c767 * Fixed the wrong check for the largest block: it was always checked, no matter
if the largest block was marked invalid or not. Thanks for testing, luroh :-)
* Fixed warning.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28113 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28113
2008-10-14 22:42:49 +00:00
Axel Dörfler
c709ef9805 * Changed how the string for the UUID hash is build.
* Accidently did not start at different positions in the string to build the
  hash, but just added some value to the hash...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28112 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28112
2008-10-14 22:30:43 +00:00
Axel Dörfler
a8744b0ee9 * Each allocation group now lazily maintains the largest free block separately,
so that allocations can be directly fulfilled from that block without having
  to search for it.
* This should further improve the allocator's performance, but it could need
  more tuning (ie. when to rebuild the free block).
* Added debugging code to check if the largest block is maintained correctly;
  it's currently turned on (DEBUG_ALLOCATION_GROUPS) which makes allocations
  actually pretty slow - I'll disable it again after it has been tested a bit
  more.
* Added a "bfs_allocator_blocks" KDL command that allows you to show all
  tracing entries that affect a specific block (only available if BFS has
  been compiled with tracing support).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28111 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28111
2008-10-14 22:14:10 +00:00
Michael Lotz
4977d0be6c Fix build under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28110 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28110
2008-10-14 21:47:05 +00:00
Stephan Aßmus
991547ef6c Patch by Artur Wyszynski:
* Implemented BGradient, BGradientLinear, BGradientRadial,
  BGradientDiamond, BGradientConic and BGradientRadialFocus
  new Interface Kit classes.
* Implemented all the (AGG-based) backend necessary in
  the app_server to render gradients (Painter, DrawingEngine)
* app_server/View can convert a BGradient layout to screen
  coordinates.
* Added BGradient methods of the Fill* methods in BView.
* Implemented a test app and added it to the image as a
  demo.
* Adopted Icon-O-Matic and libs/icon in order to avoid
  clashing with the new BGradient class. Re-use some
  parts where possible.

Awesome work, Artur! Thanks a lot. Now a more modern
looking GUI has just become much easier to implement! :-)

TODO:
* Remove the need to have gradient type twice in the
  app_server protocol.
* Refactor some parts of the patch to remove duplicated
  code (Painter, DrawingEngine).
* Adopt the BPicture protocol to know about BGradients.
* Review some parts of the BArchivable implementation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28109 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28109
2008-10-14 21:27:42 +00:00
Oliver Ruiz Dorantes
9e6975723d Header for a common kernel module to handle all BT Stack data structures. Its sources can wait...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28108 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28108
2008-10-14 20:50:44 +00:00
Oliver Ruiz Dorantes
b9b8d43c57 Current L2CAP code. Replying ConnectionResponses signals. The style should be more acurate than my previous commits(so use this commit to correct my remaining bad habits). The Code is not completed but need to commit to have a chance to go on from Germany....
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28107 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28107
2008-10-14 20:47:20 +00:00
Oliver Ruiz Dorantes
07e4b460ce Add flow specificacion command. Add port names being used among the Stack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28106 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28106
2008-10-14 20:34:30 +00:00
Oliver Ruiz Dorantes
2c6619e446 Styling and define module path outside the driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28105 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28105
2008-10-14 20:28:22 +00:00
Rudolf Cornelissen
19c416bbd0 added recognition for subclass PCI_mass_storage_other since my promise ide controller Ultra133TX2 reports being one, and there are others as well. My system is now booting with IDE and ATA busmanager using the promise controller, and DMA works perfectly. If the addition of PCI_mass_storage_other regresses booting then cardID's and manID's should be added that may report PCI_mass_storage_other since otherwise certain systems are rendered unbootable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28104 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28104
2008-10-14 20:04:19 +00:00
François Revol
b20c4dc559 This should fix the BeOS build. Note BeOS had read_pos() way before POSIX had any pread()...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28103 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28103
2008-10-14 19:51:52 +00:00
Stephan Aßmus
73be167630 * Removed dead code.
* Fixed line lengths.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28102 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28102
2008-10-14 19:48:35 +00:00
Stephan Aßmus
f6bffd4e5b Whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28101 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28101
2008-10-14 19:47:00 +00:00
Stephan Aßmus
60a6c9c331 Add short cuts for changing the snapping mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28100 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28100
2008-10-14 19:30:47 +00:00
Stephan Aßmus
3bb156ee57 Created navigation icons/buttons. Could be used in Tracker or browsers for
example. One could also design them to be 3D icons like regular icons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28099 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28099
2008-10-14 19:05:21 +00:00
François Revol
86cb5b45da - Move MFP freq to a separate header
- initialize the time_base_frequency kernel arg (should be done in the bootloader though...). We will use MFP timer to support system_time(). At least try to.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28098 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28098
2008-10-14 18:40:45 +00:00
Stephan Aßmus
531bc71bf9 Use the parent's low color, not view color for the icon background and frame
base color. Fixes the frame looking much too strong.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28097 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28097
2008-10-14 18:36:07 +00:00
Stephan Aßmus
a6099ca9e5 * Implemented changing the icons size (several ones are supported from
16 x 16 to 64 x 64).
* Changed the layout code to have dynamic padding depending on main icon size.
* Fixed a problem with the "Auto Raise" feature where, when the pad was along
  the bottom, you had to tip the top of the screen with the mouse for the pad
  to raise...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28096 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28096
2008-10-14 18:32:31 +00:00
Stephan Aßmus
8eeb005f20 ... actually, "unnest" the rest of the file as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28095 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28095
2008-10-14 17:25:42 +00:00
Stephan Aßmus
80e1925251 * Reworded MouseDown() to avoid all these nested conditions...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28094 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28094
2008-10-14 17:23:00 +00:00
Axel Dörfler
700de23e38 * Added assigning an UUID to the image written; you can either pass one via the
new '-u' option, or let it generate one automatically (by building a hash over
  the full path of the image).
* This is allows you to use our images in VirtualBox without having to readd
  the hard drive with every rebuild.
* Enlarged the description section to 1024 bytes - this also prevents VirtualBox
  from writing data beyond the description size.
* Added '-d' option to just dump info about an existing vmdk image file (only
  monolithic mode is supported, though).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28093 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28093
2008-10-14 17:14:29 +00:00
Stephan Aßmus
5604c88c81 Created an icon for Playground.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28092 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28092
2008-10-14 16:16:20 +00:00
Michael Lotz
4476b88f81 * More cleanup, made the coding style mostly Haiku compliant, replaced space
by tab indents everywhere.
* Remove special handling in map_physical_memory to handle page offset and
  length. Opposed to BeOS, Haiku does both automatically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28091 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28091
2008-10-14 15:20:03 +00:00
Michael Lotz
1627a0251e * Fix syslog output, dprintf doesn't take a va_list. This caused junk to be
written on load of the ACPI module.
* Fix waiting for a semaphore. It didn't ever use the timeout because it missed
  the B_RELATIVE_TIMEOUT and the timeout value would've been wrong as well
  since it didn't convert from milli- to microseconds.
* Do away with the hack of not actually using spinlocks because it apparently
  didn't work on Dano. Now normal spinlocks are used.
* Also remove the atomic test and set function that was used for locking.
* Panic in case an interrupt handler is removed, because it cannot (yet) work.
* Use system_time() to instead of using gettimeofday() and converting.
* Fix reading PCI config, the width was used wrongly so nothing was returned.
* The physical memory read/write function didn't actually do anything or would
  at worst have accessed unmapped memory. It now uses a bit of private VM
  functionallity to actually implement reading and writing physical memory.
* Some style cleanup, more to come in the next commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28090 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28090
2008-10-14 15:17:58 +00:00
Alexandre Deckner
e400b7d395 * DeskWindow wasn't checking if the context menu for the trash was already open and showing. We do it like in ContainerWindow now. Fixes #353
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28089 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28089
2008-10-14 14:46:47 +00:00
Stephan Aßmus
b2ade57dd9 * Improve indentation.
* Use layout friendly constructor of BView.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28088 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28088
2008-10-14 13:39:55 +00:00
Stephan Aßmus
a96cedf6ef Improve indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28087 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28087
2008-10-14 13:29:28 +00:00
Stephan Aßmus
caf9808615 Added a TODO, because I spotted a problem when moving partitions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28086 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28086
2008-10-14 13:26:45 +00:00
Stephan Aßmus
3f2f8b4c9a Fix some char/line limit and naming problems. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28085 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28085
2008-10-14 13:25:14 +00:00
Stephan Aßmus
eeb00d5abc Small indentation improvement...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28084 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28084
2008-10-14 13:21:43 +00:00
Stephan Aßmus
e385b2434f * Added clarifying comment.
* When the consumer does not want to consume a glyph, make
  sure the advance values are being reset before breaking out of the
  loop. These are used one more time after the loop.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28083 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28083
2008-10-14 13:20:29 +00:00
Stephan Aßmus
47ddcdba73 Removed superfluous parenthesis.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28082 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28082
2008-10-14 13:19:15 +00:00
Stephan Aßmus
d3cfdf5740 Updated copyright.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28081 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28081
2008-10-14 13:17:24 +00:00
Stephan Aßmus
ed3215ee21 Save one check in certain situations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28080 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28080
2008-10-14 13:16:44 +00:00
David McPaul
6babeb8545 get MetaData from infoBuffer parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28079 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28079
2008-10-14 12:55:23 +00:00
David McPaul
6df521300a turn off debug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28078 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28078
2008-10-14 12:54:02 +00:00
David McPaul
f4be1422f2 pass a wave structure as meta data. avcodec needs it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28077 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28077
2008-10-14 12:53:20 +00:00
Michael Lotz
57f8452b78 Rather use UsePublicObjectHeaders instead of using USES_BE_API for the
gen_mattypes build tool, as the latter will try to use BeOS headers on BeOS
compatible host platforms and therefore breaks the build because of missing
files. This should work on all platforms, as with that the headers in the
repository are always used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28076 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28076
2008-10-14 11:08:08 +00:00
François Revol
9a1e8ef4ce - factor out code
- name color drops


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28075 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28075
2008-10-14 10:11:28 +00:00
François Revol
456e89ccc2 - fix bezier points
- set names on objects
/me pets Humdinger


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28074 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28074
2008-10-14 09:40:14 +00:00
Stefano Ceccherini
80fa95ad77 no need to use private libbe variables anymore
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28073 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28073
2008-10-14 09:19:21 +00:00
François Revol
9842ea8fda - better handling of escapement, but still wrong
- handle line feeds
- warn when text is too long
- better control points, but it's still not correct


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28072 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28072
2008-10-14 08:41:03 +00:00