Commit Graph

21961 Commits

Author SHA1 Message Date
Stephan Aßmus 12a257d7f8 * make sure that the ApproximationScale() implementation of any Transformer
not negative
* PathSource can now remember a global scale, and the IconRenderer sets
  it, since this value is used in the curve converter for on the fly
  generation of vertices, this change does not affect anything and doesn't
  create the need to "update" the conversion pipeline to render an icon at
  different sizes (like Icon-O-Matic does)

-> this change fixes edgy curves on icons rendered bigger than 64x64 as
  reported by Axel some time ago


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-09 15:36:28 +00:00
François Revol 9226faeadb Fix return code and some style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-09 01:56:39 +00:00
Stephan Aßmus 48882cec96 * lock pattern drawing to the true view origin, independend of the views
position on screen (fixes drawing glitches in patterns when the view
  was moved on screen (for example because the parent window got moved))


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 22:59:04 +00:00
François Revol 8a21dd58b6 One more oldie I found when digging old code...
A filepanel command allowing scripts to ask the user where to load or save a file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 22:15:12 +00:00
Axel Dörfler 5f23ba4ac9 If either the path or the resolved path is NULL, realpath() now returns
EINVAL. This also fixes bug #1659.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 21:45:40 +00:00
Axel Dörfler 9abdc42489 If there are more than 4 MB dirty cache pages, the page writer won't stop anymore
writing back pages when there is enough free memory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 20:32:04 +00:00
Axel Dörfler 2c0729ea2d * Turns out the 3com driver wasn't picked up after my changes, but the marvell_yukon driver
worked flawlessly this one time... (I got almost 10 MB/s with that one, now 7.5 MB/s with
  the 3com driver)
* We need to acknowledge the interrupt in the handler, because else, the interrupt continues
  to fire after the PIC interrupt is acknowledged by the kernel.
* It also helps a lot to turn off the interrupts on the device while xl_intr() is handling
  the interrupt.
* When the slow handler is running, we now set the new "handling" field in the internal
  interrupt handler which will not invoke the scheduler then (but only signals a handled
  interrupt).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 19:38:51 +00:00
Axel Dörfler f79121dacb * Only acknowledge the interrupt in the service thread, so that no new one will be triggered.
* Also, loop as long as new interrupts are coming in.
* This fixes the high CPU usage and low throughput of the 3com driver; it now works just fine;
  dunno why it worked for me that well last time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 14:52:14 +00:00
Jérôme Duval a5d8db5d76 fix linux build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 14:40:33 +00:00
Axel Dörfler 21885de266 * BFS now always writes back the whole block when it writes the super block.
* Therefore, I've added an I/O control that let's it update the boot block
  part of this block, so that makebootable can use it on a mounted volume
  (this will probably be moved into a disk system API later).
* Added user_memcpy() to the fs_shell.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 14:23:35 +00:00
Jérôme Duval 477d25de35 don't add backgroundTexture.tga as default folder image
fix bug #1649


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-08 12:45:03 +00:00
Jérôme Duval d2d6724788 added pthread_once() implementation and tests
there is still a TODO on an init race condition 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-07 21:02:59 +00:00
Jérôme Duval 4ff6af6d52 applied patch by kaliber
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-07 19:30:34 +00:00
Michael Lotz dfa4dfe033 Something else that has been laying around for some time. Implemented hash_grow() that can grow a hash table to a new table size. Automatic growing is commented out in hash_insert() since there needs to be a way to disallow growing in certain cases (i.e. where no allocations can be made). This is detailed in the ToDo at the top of the file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-06 21:58:06 +00:00
Michael Lotz bbea21a256 Forgot the header change in the last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-06 21:41:08 +00:00
Michael Lotz 849e3c6724 First try at implementing driver rescans (this has been laying around my disk for quite some time).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-06 21:36:15 +00:00
Stefano Ceccherini 9b95b879f7 Set the low color to be the same as the view color, otherwise
antialiased text won't work correctly (for example when you set a dark 
color).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-06 21:17:46 +00:00
Stefano Ceccherini 46f29e60b4 Also update the ui_color for menu backgrounds, when using set_menu_info.
Update the menu_info neverthless, when setting the ui_color for menu 
backgrounds. Fixes bug #550.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-06 21:09:35 +00:00
Axel Dörfler a83a20f685 * Made cal.c compile, and fixed warnings.
* Added it to the build, and the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-06 20:40:24 +00:00
François Revol ba1265f96e Print a new line there for cleaner output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-05 22:00:06 +00:00
Axel Dörfler d3a580d2e0 The fs_shell now also works with devices that don't return a correct
hd_geometry, but do support the BLKGETSIZE64 ioctl (it just crashed 
before).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-05 18:33:58 +00:00
Stefano Ceccherini ebe41f1a76 added a TODO item
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-05 12:13:43 +00:00
Stefano Ceccherini d7c343d92c Dispatch also the B_WINDOW_ACTIVATED messages. This fixes bug #613, but
we need to check which other messages are handled by beos here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-05 12:12:48 +00:00
Stefano Ceccherini 956a0d199c Use floorf() on the calculations otherwise casting to an int could
truncate negative values to 0. Fixes bug #914.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-05 11:21:18 +00:00
Stefano Ceccherini 8d6c93fb2a Renamed all member variables to fit our guidelines. Removed useless workaround for an old beos bug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-04 13:02:33 +00:00
Stefano Ceccherini c0728ccd2a The placement of the animation view was off by one to the left. This
caused bug #96.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-04 11:06:56 +00:00
Stefano Ceccherini ee3f1027be Selecting text from right to left didn't work. I disabled the use of
ResizeSelection() because it didn't support this. Selecting text flicker 
a lot now, it will be fixed later. Selection should be changed to work a 
bit more like BTextView. This fixes bug #1638


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-04 10:58:31 +00:00
Ingo Weinhold dc5e011806 Make the syscall_time test compile under BeOS, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-03 13:25:44 +00:00
Axel Dörfler 4afaeabbd8 * bfs_free_cookie() accidently reverted a transaction after having updated
the inode's internal last modified and size copies, causing in inconsistent
  data. This fixes #1643.
* The block being replayed are now dumped to the debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-02 16:38:38 +00:00
Axel Dörfler 653eea311d Added "mail" directory - this fixes Beam not starting up on a plain
Haiku installation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-02 14:30:52 +00:00
Axel Dörfler fc8ffb64ec Applied a slightly changed patch by cl21: changed how the BListItem layouts
its text contents. This fixes bug #619. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 19:51:56 +00:00
Ingo Weinhold ccaac177f6 Use is_computer_on() as test syscall.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 19:27:30 +00:00
Axel Dörfler 4a241f2ac3 Some more extensions to the FreeBSD compatibility layer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 17:34:59 +00:00
Axel Dörfler 5536ea1018 The Marvell Yukon driver needs the SWI task queues as well. The driver is now working, but it
does not yet work reliably here - it encounters a "PCI Express protocol violation", at least
that's what it says. Will look into that later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 13:18:09 +00:00
Axel Dörfler 589e5418f1 * We need to call if_init() before trying to set the media.
* Accidently excluded the MII bus from being probed in r23019 - in fact, now all
  devices have to be probed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 13:16:34 +00:00
Axel Dörfler 4dc1122b30 The "ints" KDL command now also dumps the handlers associated to a vector.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 12:01:11 +00:00
Axel Dörfler 1f89a3766a * device_delete_child() now works differently from FreeBSD: in FreeBSD you can't just
call this function if you don't know if a device has a direct reference to one of
  its children. Since we want to be able to delete the root without having any knowledge
  about its children, we now detach everything first, and then delete the entries.
  This fixes a possible crashing bug when a preloaded driver (used for network boot)
  tried to acquire its resources again at a later point.
* device_detach() and device_attach() now check if the device has an attach or detach
  method at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 11:09:58 +00:00
Michael Lotz 3bd7e77cfa Messed up those numbers. The interval can range from 0 to 16 and we can use 0 to 10 with the 1024 frame list. So it's obviously 11 entries and not 10. Fixes the wrong tree layout and the doubled polling intervals of interrupts.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-12-01 10:18:27 +00:00
Oliver Ruiz Dorantes 90e2260736 Remaining part of the USB-BT driver. Events are commands are tested and working. ACLcode is untested and needs review. Lacks some general headers to be able to compile it, as I am still considering making some org. changes. Commiting for possible reviews or suggestions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 19:59:29 +00:00
Oliver Ruiz Dorantes d89505dc24 Wrong method name
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 19:51:44 +00:00
Axel Dörfler 82edabb115 Implemented device_detach(), and bus_generic_detach() - both are needed by
the updated mii code on destruction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 18:50:40 +00:00
Axel Dörfler debb1200cc Accidently removed our changes when updating to the FreeBSD 7 version of the driver.
Ingo, this is your chance to remind me of the vendor branch :


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 18:39:56 +00:00
Ingo Weinhold 0c9373b72c * Removed the BUILDING_FS_SHELL guarded code. It was needed for the old
FS shell only.
* Accessing attributes of symlinks was broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 14:23:46 +00:00
Ingo Weinhold 7cb2be2a48 Uncommented the pthread_key_create() tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 14:21:17 +00:00
Axel Dörfler 372952dffc * We now cache the local hardware address in the protocol object. This allows
us to not have to look it up in arp_send_data(), and also to have more than
  one uninitialized interface around (ie. set to INADDR_ANY), and still have
  the ARP layer act correctly.
* arp_update_entry() now allows entries that link to INADDR_ANY to be updated
  at will. This fixes trying to bring more than one uninitialized interface up.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 14:10:52 +00:00
Axel Dörfler eac3f1b76d Added marvell_yukon driver, and marked all FreeBSD drivers to be compiled for
x86 only (for now, that should be easily fixable).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 12:31:33 +00:00
Axel Dörfler 30710739a3 * compat_open() still needs to get the stack module, as the callout
functionality needs it.
* callout_init_mtx() now initializes the timer manually, since the stack
  might not have been loaded yet (since a device is now attached in
  init_driver()).
* Minor other fixes; the FreeBSD compatibility layer should now be functional
  again.
* Accidently put pci.c into the repository, but that was never meant to happen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 12:28:51 +00:00
Axel Dörfler 053693ef2a Since device_add_child() needs the name of the parent driver, the root
device needs a driver_t object, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 09:40:52 +00:00
François Revol 2e3233d74e Propagate set_ui_color() up to the DesktopSettingsPrivate class.
Still needs code to save the values.
Also needs a way to access them from Decorator::UIColor(), but the DesktopSettings passed to the ctor can't be cached.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 01:21:19 +00:00
François Revol fef10c612a Test code to set other ui_colors...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-30 01:18:23 +00:00