28852 Commits

Author SHA1 Message Date
Stephan Aßmus
4024eadfda My previous fixes had an oversight and the very last fix introduced new drawing
problems. Basically, forceDraw was set to false which then prevented any new
items to be drawn when there was no scrolling necessary. Now we use a local
variable "needToDraw" that starts with "true" on each iteration. I don't really
know why forceDraw is even passed to the function in the first place. Maybe
it should be called "disabledDrawing" with reversed meaning and should be used
for windows that open on another workspace....


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30102 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30102
2009-04-10 08:58:13 +00:00
Stephan Aßmus
160f5f5e2f Patch by Philippe Saint-Pierre: Don't use BTextView::LineHeight() when the font
has not yet been set... Thanks a lot!

D'oh, this one made me slap my hand against my forehead!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30101 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30101
2009-04-10 08:29:05 +00:00
Michael Lotz
da4c99002d Move the lock into the request.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30100 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30100
2009-04-10 08:05:17 +00:00
David McPaul
2ecebae14f ignore Stack type in elf loader
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30099 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30099
2009-04-10 03:28:00 +00:00
David McPaul
8507d18bcb define Stack Program Header type
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30098 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30098
2009-04-10 03:27:27 +00:00
David McPaul
ccb46ae54b Build avcodec with assembly targets using yasm
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30097 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30097
2009-04-10 03:21:56 +00:00
David McPaul
1c258c3d59 use yasm instead of nasm
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30096 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30096
2009-04-10 03:21:06 +00:00
David McPaul
d477c2ba88 Include APE_reader in build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30095 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30095
2009-04-10 03:15:16 +00:00
Philippe Houdoin
87e87a7d96 As Urias reports, OpenGL kit and stuffs build on PPC target too now, so let's add
them to the image. Thanks Urias for testing, submitting patches and... being 
patient ;)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30094 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30094
2009-04-10 03:09:05 +00:00
Philippe Houdoin
41976c3dc1 * Removed dispatch.c from glapi-dispatching.o: GLDispatcher.cpp does
the job instead of dispatch.c.
* Fixed BYTE_ORDER support for BIG_ENDIAN targets (PPC).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30093 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30093
2009-04-10 02:56:26 +00:00
Philippe Houdoin
4623724398 Forgot to enable SPARC assembly support there too. Still UNTESTED.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30092 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30092
2009-04-10 02:53:41 +00:00
Michael Lotz
118bb4e750 * Fix race condition between finishing a request and returning a busy status
when the channel is in use, which would cause the SCSI scheduler to stop
  sending requests.
* Indeed we need to return a status from the interrupt handler, as for PIO
  transfers there is no way of knowning whether or not the interrupt at hand
  was ours.
* Add some debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30091 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30091
2009-04-10 00:14:07 +00:00
Stephan Aßmus
d3171391fa Fixes for the B_NO_BORDER LOOK:
* Draw the left/top border anyways, since it just looks bad with scrollbars
  where the frame cannot be turned off. But, don't draw the focus indication
  in this mode.
* Fixed layout of the views for B_NO_BORDER_LOOK. There was a one pixel
  overlap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30090 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30090
2009-04-09 23:49:49 +00:00
Stephan Aßmus
c44aa83365 Also draw the scroll corner when there is no border.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30089 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30089
2009-04-09 23:47:54 +00:00
Stephan Aßmus
b7cafeb2ad Small style cleanups again...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30088 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30088
2009-04-09 23:47:17 +00:00
Stephan Aßmus
54337aafca Small style cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30087 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30087
2009-04-09 23:46:38 +00:00
Rene Gollent
b5067cdcbd gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30086 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30086
2009-04-09 23:14:09 +00:00
Axel Dörfler
7f5c5dc8a1 * Don't try to free the pages area when all you had was a single page (in the
union).
* This fixes a crash on restart that has been revealed by Oco's change to the
  reboot process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30085 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30085
2009-04-09 22:40:15 +00:00
Axel Dörfler
1f25254a3f * Fixed the non-working volume update when using the mouse wheel - only
the slider position was updated, not the actual volume.
* Use InvokeNotify() for wheel changes so that we correctly notify listeners.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30084 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30084
2009-04-09 21:40:35 +00:00
Axel Dörfler
126d77c5d5 * Changed ContinuousMessageFilter to register for parameter value changes,
and change its slider value when such a message arrives.
* Currently, this will only work if such a view already received a message;
  added a TODO about how it should be done, but since those would require
  some more changes, I don't want to do that as long as Sean Healy is working
  on that file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30083 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30083
2009-04-09 21:21:42 +00:00
Michael Lotz
ac0a972985 Adding mode sense command to retrieve the write protected status. Doesn't work
yet, so not enabled for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30082 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30082
2009-04-09 20:47:10 +00:00
Axel Dörfler
3c2a04f4c9 * Fixed that you would drag the wrong character when the drag was started
while you were already over another character.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30081 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30081
2009-04-09 20:45:18 +00:00
Michael Lotz
22805aae7f Adding ATAPI support to the new ATA bus_manager. Only tested in QEMU.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30080 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30080
2009-04-09 19:53:26 +00:00
Axel Dörfler
9ec59fc934 * Improved tracing of the allocations at block level.
* Turned on extra check on allocation when KDEBUG is set.
* The "bfs" KDL command now also prints the block bitmap block for the
  specified block.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30079 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30079
2009-04-09 19:50:03 +00:00
Stephan Aßmus
039878c152 * Set forceDraw to false when we have already drawn the pose, not when
there is only some pending scrolling.
* Fixed my previous ScrollTo() change to actually scroll in the two directions
  in two steps...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30078 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30078
2009-04-09 19:24:45 +00:00
Axel Dörfler
8734b81d23 * Made the NotificationManager.h header self contained.
* Changed some members to be part of the NotificationManager instead of
  allocated objects.
* Use BAutolock where appropriate.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30077 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30077
2009-04-09 19:13:07 +00:00
Stephan Aßmus
78772ca58c Should fix the problems with dirty selection left-overs when editing and also
other situations. Basically, I made DeleteText() adjust the selection according
to the deleted range. Some places where DeleteText() was called forgot to
adopt the selection. Other places adopted the selection. Maybe some of those
could be removed now, but some also change fClickOffset, so I just left them
as they are.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30076 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30076
2009-04-09 18:29:55 +00:00
Stephan Aßmus
bedfcd63af Improve the word wrapping a bit. This should eventually use the LocalKit when
it's ready. For now, I just tried to fix stuff like breaking before
punctuations. I had trouble wrapping my mind around the wrapping code, so I
didn't include as much cases as I wanted. Basically, the wrapping code assumes
that a spot where CanEndLine() returns true must be a white space character,
which wouldn't be the case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30075 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30075
2009-04-09 17:54:01 +00:00
Axel Dörfler
e7cdf7f3f5 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30074 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30074
2009-04-09 17:22:00 +00:00
Axel Dörfler
9cfc4c2ff8 * The slider now snaps to 0 dB when crossing that to ease finding the maximum
volume without distortion.
* Added about window.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30073 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30073
2009-04-09 17:19:38 +00:00
Axel Dörfler
cd7f1893eb * The slider position was actually computed incorrectly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30072 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30072
2009-04-09 17:10:43 +00:00
Axel Dörfler
b847381250 * Making it private doesn't help unless you have a const BSlider. Therefore,
removed it from the public namespace, and made it only visible when linking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30071 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30071
2009-04-09 15:50:03 +00:00
Axel Dörfler
d9479a6951 * Added const version of GetLimits() (the non-const version is still around
for binary compatibility).
* Always round the bar thickness, or we get drawing artefacts.
* Cleaned up the header following our coding style.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30070 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30070
2009-04-09 15:41:10 +00:00
Michael Lotz
7997389772 Implement DMA transfers in the new ATA bus_manager.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30069 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30069
2009-04-09 15:24:40 +00:00
Stephan Aßmus
c4005c4d29 * Some cleanup in the commented out debug code.
* Fixed a problem when scrolling. Basically, the region that could be copied
  should be removed from the pending dirty region. Before a region is copied,
  the dirty regions are removed from it. So the region at the target offset
  can always be considered clean. This fixes the problem in Tracker when
  enlarging windows that are already scrolled to the right or bottom. This then
  triggers the Tracker window to scroll the pose view in such a way that the
  bottom/right stays fixed, but would trigger this exact situation: The bottom
  is already pending dirty, but then the clean contents are copied on top of it.
Fixes ticket #1849 and perhaps also #2975.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30068 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30068
2009-04-09 14:19:09 +00:00
Stephan Aßmus
72cd1c7726 Fixed some weird fallback code, I don't think it's used and added a TODO
for whoever stumbles there next...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30067 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30067
2009-04-09 14:05:31 +00:00
Stephan Aßmus
ffdb0ccf4f Also improve the BPicture version of drawing line arrays.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30066 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30066
2009-04-09 13:51:16 +00:00
Stephan Aßmus
ff4aa6dc03 Style cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30065 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30065
2009-04-09 13:49:51 +00:00
Michael Lotz
3e907cd4a0 Make it buildable on BeOS again... The last time now, the next time BeOS support will simply be removed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30064 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30064
2009-04-09 13:02:46 +00:00
Michael Lotz
eb01fb72f6 * Add the kernel debugger extensions only for the haiku target.
* Acknowledge non-enabled interrupts in UHCI as done in EHCI as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30063 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30063
2009-04-09 12:35:32 +00:00
Axel Dörfler
4e0b8ffdd6 * As Stephan pointed out, the roster will be NULL if the media server is not
running. Thanks! That's just another thing we should improve in R2.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30062 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30062
2009-04-09 11:45:50 +00:00
Axel Dörfler
bc608ebf93 * The volume now listens to parameter changes, and adapts itself automatically.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30061 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30061
2009-04-09 11:26:19 +00:00
Axel Dörfler
3d2abd1bc8 * The mixer node is now exported.
* The node is no longer allocated separately.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30060 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30060
2009-04-09 11:25:23 +00:00
Axel Dörfler
2ff47e1785 * Fixed bug I introduced when deleting parameters (no more crashing).
* Removed the BParameterWeb::{Start|Stop}Watching() methods again, as the same
  thing can be achieved using the BMediaRoster already (even though it doesn't
  seem to work yet).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30058 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30058
2009-04-09 09:39:58 +00:00
Stephan Aßmus
080385d599 Fixed logic to detect and warn about changes in the system folder. Merged
the "system" folder and "system folder or it's contents" case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30057 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30057
2009-04-09 09:30:33 +00:00
Stephan Aßmus
000f19e226 Small coding style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30056 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30056
2009-04-09 09:29:33 +00:00
Stephan Aßmus
61d107c8a7 Fix hardcoded paths for this *test* component.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30055 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30055
2009-04-09 09:29:07 +00:00
Michael Lotz
9611bddd7a Adding DMA detection and generally allow DMA. Not used yet though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30054 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30054
2009-04-09 09:21:46 +00:00
Michael Lotz
6bb01f71bc * Adding/updating license headers.
* Add the standalone ata module to the Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30053 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30053
2009-04-09 08:54:46 +00:00
Michael Lotz
44039cc605 Additional to the normal detection of device presence, use the trick previously
present in the IDE bus_manager when detecting devices to avoid long timeouts
when waiting for possible ATAPI devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30052 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev30052
2009-04-09 08:44:25 +00:00