Commit Graph

61828 Commits

Author SHA1 Message Date
Adrien Destugues
c5aa9dfb4c Create filesystem indices when creating Haiku image
Fixes #4424.

Change-Id: I737ee4f9bb70ce48c0c94f3a862a3073da8c0c4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2796
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-07-18 14:00:10 +00:00
X512
77912444b8 Tracker: fix ScrollIntoView
Same problem as in BListView::ScrollToSelection.

Change-Id: I1cd26190566b1808f47475c1499298b66549f024
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2312
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-18 13:58:28 +00:00
Adrien Destugues
06b2ce5412 FirstBootPrompt: update welcome text.
Change-Id: Ibc8b051cd183a1184d62af264e0a42815e952f99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2545
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-18 13:47:29 +00:00
X512
c3a6a6b6ee mime_db: add BPicture type
Change-Id: I69948b04e6c1b19165a51cd0eb999591da4efccb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2828
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-18 13:41:31 +00:00
X512
f27269a67d MediaPlayer: fix reporting wrong format
Now it allows to connect MediaPlayer video producer to differnt node in Cortex.

Change-Id: I7ee598ea64d10e8fa876259e7a4480a650a0e189
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3034
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-18 13:25:09 +00:00
Fredrik Holmqvist
d9f74c873b Graphite options only, replace dupes with floop-nest-optimize
Other loop optimization is enabled in -O3 already
2020-07-18 15:19:44 +02:00
Fredrik Holmqvist
7cea5bf07f Remove graphite building, we have gcc with these deps in build
When we moved ISL, MPFR, GMP and so on inside GCC we no longer
need to do any specific building to support graphite.
2020-07-18 15:19:17 +02:00
Autocomitter
bfa01f5213 Update translations from Pootle 2020-07-18 08:12:49 +00:00
Adrien Destugues
bd3b7c3f90 Make space for AVX-512 registers in x86 arch_thread.
Should fix #16382

Change-Id: Ib1445e3c08036a8c959eae54adcf0f0c27bcf22d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3031
Reviewed-by: Rene Gollent <rene@gollent.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-17 11:17:20 +00:00
Andrew Lindesay
f96d1f4d92 HaikuDepot: Better Logging
Changes the logging in HD to use a macro for the
various log levels to declutter the code and to
make it easier to more systematically log.

Change-Id: I025970707a0a11e7e3aaa4b52fc91288af0183f5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3018
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-15 08:34:22 +00:00
Adrien Destugues
2ad7efd4b5 Build fix. 2020-07-14 19:33:20 +02:00
Adrien Destugues
c916010e87 Add a NULL check in strtol.
The spec says this is undefined behavior, but it will fix one more
problem with #8297

Change-Id: Ibc15f306c92b05019de1050a9eb239ba57b1a91e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3029
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-07-13 19:34:09 +00:00
Adrien Destugues
15ba64aaa3 Unify Settings menu shortcut
Use , as the shortcut key for settings in all built-in apps. Some used
S, but that's already the shortcut for saving. , is the recommended
shortcut in the HIG already, but built-in apps were not updated to
match.

Fixes #11733.
2020-07-13 20:53:45 +02:00
Adrien Destugues
d594bd97d3 MIME db: make video/ogg sniffing more specific
Check the codec in the first Ogg page for known video codecs. If none is
found, the file will be identified as audio/ogg instead.

Fixes #8702.
2020-07-13 18:09:12 +02:00
X512
36ef16bf08 BGradient: add Flatten, Unflatten methods
Change-Id: I861bab8ae19628d34297c294fd6ce3e5b6c82b34
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2827
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-13 15:35:38 +00:00
X512
4399ec510d BPicture: add fill rule support
Change-Id: I068e1c2e8659f7b90c6d7c7331a8bb25ae343fe9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2922
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-12 19:44:43 +00:00
X512
90ab1a44ad BPicture: add gradient support
Fixes #9680.

Change-Id: I0013326559cc40ff26cf7b44794c0b32aea832ba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2829
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2020-07-12 19:44:43 +00:00
Adrien Destugues
10b294d85b Media Kit: use the B_WRITABLE flag in plugins
The ffmpeg plugin reports some formats as read-only. But the media kit
included them in the list of writable formats anyway.
2020-07-12 21:17:03 +02:00
Adrien Destugues
eff77d18c7 ProcessController: use a single menu item for scheduler modes
Following the HIG, a single toggle item is enough as there are only two
states.

Fixes #10709
2020-07-12 19:44:55 +02:00
Adrien Destugues
4ad808b67d app_server: Fix clipping computation in DrawArc
The clipped rect was extended with the stroke width, and then the result
was overwritten.

Fixes #3130.
2020-07-12 13:11:11 +02:00
Adrien Destugues
c97647019c Fix localization in Web+ download window.
Fixes #16391
2020-07-12 12:06:22 +02:00
Michael Lotz
b0a3a5c9bc freebsd_network: Handle 64 bit memory BARs.
This adds the upper 32 bits for address and size.

Change-Id: I2f776c7b8b72ecefca9f3b93d9c42912666a41e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3026
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-11 23:31:06 +00:00
Michael Lotz
8827bb6d89 freebsd_network: Apply empty size and type check to IO ports.
Factor out the conversion to BAR index and hand the pci_info to both
memory and IO port allocation functions. Then apply the same checks
in the IO port case as are done for memory.

This aligns with what is done on FreeBSD.

Change-Id: Ib4bd28fd861959a467ba676de22efb1f97e5a27c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3025
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-11 23:31:06 +00:00
Michael Lotz
733e150b74 drivers: Fix 64 bit BAR checks and remove redundant masking.
Fix address type mask to use the right bits via PCI_address_type. The
previous 0xc value applies to the upper of the two address type and
the prefetchable bit instead of the two adddress type bits. This would
cause prefetchable 64 bit BARs to be misidentified as not being 64 bit.

Remove address masking as this is already done on the field in pci_info.

Use uint64 instead of phys_addr_t explicitly as on pure 32 bit platforms
this would otherwise result in a shift greater than type size.

Note that the sizes should theoretically be adjusted as well, but in all
of these cases a size needing the upper 32 bits doesn't make much sense.

Change-Id: Idd0d6e9a6cc18656b43cafcac720b132fc1f2ad3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3024
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-11 23:25:44 +00:00
Michael Lotz
74c9e88b75 pci: Cleanup, no functional change intended.
Make mandatory argument of _GetRomBarInfo a reference too and use NULL
instead of 0 for pointer argument default value.

Some line length cleanup.

Change-Id: I1bdb59eeae4496b75fd4a1b8c5b305283da266f9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3023
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-11 23:25:44 +00:00
Michael Lotz
0615a177b7 pci: Rework 64 bit base address register handling.
This moves the entire 64 bit handling into _GetBarInfo() and applies it
to the PCI address and size too. Previously only the RAM address was
handled for the 64 bit case.

Also fixes the 64 bit check to be done after the type determination.
Previously it would theoretically be possible for an IO BAR with the
lowest address bit set for that type (bit 3) to be mistaken to be 64 bit
and then skipping/mishandling the next BAR. Due to alignment this would
have needed to be a 4 byte IO BAR though.

This also corrects the limit for 64 bit BARs of type 1 devices. As there
are only two slots, only slot 0 can be 64 bit.

Also removes a copy&paste error that would lead to the high address of
64 bit BARs of type 1 devices to get taken from the h0 instead of h1
struct, corrupting its value.

Make the mandatory arguments to _GetBarInfo() references to make the
distinction more obvious and replace 0 with NULL in the default values.

Change-Id: Iae59f2875c93f15411a4d9791e71e69ba7a42287
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3022
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-11 23:25:44 +00:00
Autocomitter
dabd6c739f Update translations from Pootle 2020-07-11 08:14:16 +00:00
Augustin Cavalier
7d1a9d7874 atheroswifi: Enable 802.11n and "AR5416 interrupt mitigation."
FreeBSD apparently enables these options by default.

This should enable support for 802.11n (i.e. HT mode) on Atheros
chips that support it, of which there are quite a few.
2020-07-08 21:30:20 -04:00
Alexander von Gluck IV
583db6f559 configure: Properly detect clang version > 9
Change-Id: Ide083442fddc6f3f103f1ff3811a92d5db5c75a1
2020-07-08 14:39:47 -05:00
CruxBox
9593c05ac5 xfs: An attempt to read block directories
Map entries can be read, most structures are in place. Next is to
actually work with the directory block.

Change-Id: I700ee2e003bdef97838b1f06a95e53a5e4293658
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2981
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-08 06:23:24 +00:00
CruxBox
a060fa968e xfs: Read Short Form Directories
We can now read short form directories.
Change-Id: I23eb6ef52e8bb07643213e603ed0185f536c649f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2952
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-08 06:23:24 +00:00
Augustin Cavalier
4639c4e898 headers: Add exp10 declarations to gnu/math.h.
These are GNU extensions so they need to be behind _GNU_SOURCE.

Fixes #16371.
2020-07-07 20:48:58 -04:00
Augustin Cavalier
21e213d3b0 CodyCam: Use "%s" instead of printf'ing a buffer directly.
Fixes #16375.
2020-07-07 20:44:08 -04:00
Adrien Destugues
f7362b6fd0 BFileGameSound docs: Fix typo 2020-07-07 19:20:48 +02:00
Adrien Destugues
e4734ba710 BFileGameSound: add documentation for BDataIO based constructor. 2020-07-07 18:12:35 +02:00
Augustin Cavalier
e6c710f4bb Tracker: Set a minimum size on the count view...
...when it is paired with a horizontal scrollbar. This has the
added benefit of restoring the previous horizontal scrollbar size,
it having been lost in the prior refactor due to the "container views"
removing 2 pixels for the borders (previously, there was a different
sizing system for the count view that provided it.)

Fixes #16368 item 1.
2020-07-06 23:40:55 -04:00
Augustin Cavalier
c0a15174a6 Tracker: Restore prior text-rect bounds in the count view.
The one-pixel offset greatly improved the text alignment under HiDPI,
but degraded it on non-HiDPI. I guess one pixel really does make
that much of a difference; so this will have to be revisted.
2020-07-06 22:34:13 -04:00
Augustin Cavalier
94cc40b15e Tracker: Add a minimum font size for the count view.
Based on the logic from the title view.
2020-07-06 22:23:36 -04:00
Augustin Cavalier
df2e6c7a52 Tracker: Force the horizontal scrollbar to always be the preferred size.
See inline comment. Should fix second part of #16368.
2020-07-06 22:18:28 -04:00
Augustin Cavalier
f82f94ef79 Tracker: Remove partial support for custom fonts in PoseView.
BFont is by default bitmap-spaced, so we do not need to make
a new font just to add bitmap spacing. The rest of the code
assumes in places that we have the same general characteristics
as be_plain_font anyway, so having these bits of code does
not make a lot of sense.

Also correct the list element height computation to now just use
be_plain_font directly, which will work even when this is the first
PoseView created (i.e. before the font height has been read.)
2020-07-06 22:09:02 -04:00
Augustin Cavalier
76fcfb697e Tracker: Remove extra space between pose controls and buttons.
Now that the scrollbar is part of the pose area, we no longer
have to include its height in the spacing of the pose view
from the buttons and the bottom of the window.

Mentioned by X512 in #16368.
2020-07-06 21:52:47 -04:00
Augustin Cavalier
8539dfdac2 BScrollBar: Use the minimum as the preferred size in the alternate axis.
This was the behavior before the commit yesterday that unified the
two methods of computing the preferred size. It seems some applications
expect this to be callable without a window lock, so this works when
the other method does not.

Fixes #16372.
2020-07-06 21:40:51 -04:00
Niels Sascha Reedijk
840f23676c SoftwareUpdater: Use translated application name for notification group
Fixes #16129

Change-Id: I9e12d647bc0c8b6e54297e75642a5800613f26ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2994
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-07-06 14:09:27 +00:00
Alexander von Gluck IV
b0f530bada efi/devices: Improve tracing, no functional change
Change-Id: Iefb4da99d148f9328a3bbfdf1bbeaec8cf97648a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2993
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-06 13:55:16 +00:00
Alexander von Gluck IV
3853f36288 radeon_hd: Cram in a bunch of new PCIID's
Change-Id: Ifbd82ef7bfc2c39b2aeb5c25be177421cd22d246
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2920
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-07-06 06:39:11 +00:00
Augustin Cavalier
c70ec71d0c freebsd_network: Move ticks/seconds conversions to sys/time.h and
rename.

They now match the names they have in FreeBSD.
No functional change intended.
2020-07-05 21:16:32 -04:00
Augustin Cavalier
17af7f6298 idualwifi7260: Re-enable multiframe RX.
It no longer causes KDLs; probably the fix for the use-after-frees
on 9xxx devices also fixed whatever caused this problem.
2020-07-05 21:10:32 -04:00
Augustin Cavalier
549e16ed2e Tracker: Remove scroll bar width from the right margin in file panels.
No longer needed, the layout will take care of this now.
2020-07-05 21:07:30 -04:00
Augustin Cavalier
749fbae043 Tracker: Fix PoseView list item height computation.
This gets list item margins on HiDPI much closer to their standard-
DPI counterparts.

Fixes #16178.
2020-07-05 21:02:24 -04:00
Augustin Cavalier
ec25a0451d Tracker: Eliminate the fixed count-view size altogether.
This moves the scroll bars and the count view into the layout
inside FilePanels, so more shim views for compatibility are now made.

Fixes #13179.
2020-07-05 19:44:19 -04:00