Commit Graph

56574 Commits

Author SHA1 Message Date
John Scipione
066137eb05 Deskbar: Scale cut-off leaf icon in horizontal mode
Fixes #8505 restoring the aesthetic integrity of the cut-off leaf.

Add vertically & horizontally centered, whole vector icon to rdef.

Reformat BarMenuTitle.h rename header guard from BARMENUTITLEH to
BAR_MENU_TITLE_H.

Created TDeskbarMenuTitle subclass which deals with Deskbar menu
item stuff like getting the icon from vector data and pushing the
leaf down a few pixels to cut off the leaf (maintaining its aesthetic
integrity).

Made TBarMenuTitle methods virtual. Remove unused expando constructor
parameter and private variable.

Add a TODO to scale the bitmap if we can't find any vector icon data.
With non-vector bitmap it behaves same as before this commit in
horizontal mode.

Adjust kMinimumTrayWidth to restore Deskbar's minimum width to its
classic value since days of yore, 143px. This, perhaps not coincidently,
is exactly the amount fit 7 replicant icons. Update constants in the
code to reflect this reality. Adjustable width coming soon.

replace dynamic_cast<TBarApp*>(be_app) with a static_cast in 1 place.
2017-01-08 02:39:39 -08:00
Jessica Hamilton
3d870da3cb UEFI: leave runtime memory identity mapped.
* We don't have kernel/userspace access to UEFI at this point
  either, and with some firmware, if we don't keep the
  runtime memory identity mapped, then the loader dies. This
  will fix booting on such machines, and shouldn't have any
  impact on already working machines.
2017-01-08 21:43:53 +13:00
Humdinger
d7f781302d Fixed build... 2017-01-08 08:53:24 +01:00
Humdinger
d193fb9437 HaikuDepot prefs: Add ellipsis to menu item
As Diver pointed out, the "Manage repositories" opens a window and
should therefore be suffixed with an ellipsis.
2017-01-08 08:48:18 +01:00
Augustin Cavalier
1aacfd6940 Repositories: Use std::min and std::max to fix the x86_64 build. 2017-01-07 14:33:50 -05:00
Augustin Cavalier
07558eb152 build: Add the Repositories preflet to the regular image. 2017-01-07 13:59:20 -05:00
Brian Hill
5bf2b6eb74 Add the new Repositories preflet.
Also includes changes to HaikuDepot to change wording and add the menu item
to open the Repositories preflet.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Closes #13147.
2017-01-07 13:50:45 -05:00
Adrien Destugues
564aac4209 Add a 1360x768 mode to the "well known modelines"
- This is the native resolution of two of my displays here
- I am bored of manually setting it with screenmode -m
- Also fix the 1366x768 modeline which was 100Hz instead of the
  advertised 60Hz.
2017-01-07 17:38:21 +01:00
Humdinger
5ddc54f27e Updated gcc2 packages for links and lynx.
As reported by drjohnnyfever on the forums:
"Lynx needs an older version of OpenSSL and Links is looking for the old
libpng."
2017-01-07 17:18:54 +01:00
Jessica Hamilton
6b4cbec040 UEFI: identify the boot partition to check that it's valid.
* Also modified EFI::Header to return the efi_table_header so
  that we can compare it to boot device partition table.
2017-01-07 21:26:25 +13:00
Jessica Hamilton
42e718f041 UEFI: improve boot support in devices.cpp
* Maintain a list of all MESSAGING_DEVICE_PATH and
  MEDIA_DEVICE_PATH handles, so we can avoid adding devices
  multiple times.
* Split up platform_add_boot_device() into separate functions
  for better readability (add_cd_devices, add_boot_device_for_image,
  etc.).
2017-01-07 21:26:23 +13:00
Jessica Hamilton
35b38c392e loader: get_boot_file_system() iterate over all devices found.
* This is useful for UEFI, as we can then add the device that
  contains the UEFI loader, as well as all CD devices. As a
  result, if the device with the UEFI loader doesn't contain
  a bootable BFS partition, it will then attempt the same for
  CD devices.
2017-01-07 21:25:23 +13:00
Jessica Hamilton
445b080ea3 UEFI: support selecting video resolution & vesa settings file. 2017-01-07 15:39:35 +13:00
John Scipione
c574ad267d Haiku Book: Make wider matching Userguide
I like the narrower width better, but, templates are too wide to fit.

See for example:
https://api.haiku-os.org/classBLayoutBuilder_1_1Group.html#abc185e5d9c43241664889b3b7f8df641
2017-01-06 16:10:29 -08:00
Adrien Destugues
5d56964421 AVFormatReader: take the frame size into account
In ffmpeg, an audio frame may be made of multiple samples. We don't
really support that in our plug-in, and assume the frame rate and sample
rate are the same thing.

Adjust the reported frame count by multiplying ffmpeg's frame count by
its frame size (which is the number of samples per frame).

This fixes audio not working or stopping after a short time in
MediaPlayer, which uses the frame count this way.
2017-01-06 22:51:37 +01:00
Fredrik Holmqvist
1d8306654a Rewrote device handling in EFI boot-loader
This allows me to find and boot disks and cds(*)
platform_add_boot_device tries to find the disk of the EFI partition
As on other platforms if boot disk isn't found platform_add_block_devices
will be called.
platform_add_block_devices will find all block devices that arn't partitions as
they are handled by Haiku already.
Currently first found suitable partition will be selected.

TODO:
 * pass in partition UUID's as boot-loader arg to setup boot for
any partition.
 * Better cd detection
 * Better disk_identifier

*) vfs_boot.cpp is very restrictive when it comes to booting cds.
It either do very Anyboot check where boot partition should be at offset 0,
which isn't true for EFI. In my case it's not even on that disk.
Or it only allow data session partition types.
This is currently failing as the Anyboot partition type is BFS.
2017-01-06 19:43:08 +01:00
Fredrik Holmqvist
57b59d47c5 memset was done twice 2017-01-06 19:39:58 +01:00
Jessica Hamilton
c337460525 binutils: update x86_64 to include PE targets 2017-01-07 05:24:24 +00:00
Humdinger
09ee925c56 Small change to Printer prefs strings
Talked with Vidrep, and he's right:
Apps already have a "Page setup" menu item, opening a window titled
"Page setup". Having a picture button in there that's labeled "Page setup",
too, isn't cool.
So, let's name that and its opening window "Paper setup", even if it's not
always 100% accurate. The PDFWriter e.g. has a compression and version
setting in there...
2017-01-06 08:11:37 +01:00
Augustin Cavalier
02b11c1982 LegacyPackageInstaller: Fix strnlen/strncmp usage.
I should have my "License to C" revoked...
2017-01-05 16:51:21 -05:00
Humdinger
5f050a9e7a Change strings in Printer prefs
Per tests by Vidrep, makes the GUI slightly more consistent.
Plus additional sentence casing.
2017-01-05 18:26:00 +01:00
Augustin Cavalier
bdf0ed4231 LegacyPackageInstaller: Ignore files which do not end in ".pdb".
The LegacyPackageInstaller's data folder is (and has always been)
"~/config/packages", which is of course the same directory that Haiku's
(relatively) new package management system uses. We don't want the
"administrative" folder and any HPKGs in that directory to show up in
the "installed legacy packages" list, so ignore them.
2017-01-05 12:06:30 -05:00
Jessica Hamilton
e6efd8f21c gawk: downgrade to 4.1.0 to fix build issues on x86_64 Haiku hosts. 2017-01-05 22:33:44 +00:00
Automatic Committer
083aab66b1 Update pci.ids from pciids.sourceforge.net 2017-01-05 05:20:19 +01:00
John Scipione
617acada9c BFS: CachedNode initialize members
Fixes CID 609586:  Uninitialized members  (UNINIT_CTOR)

Non-static class member "fWritable" is not initialized in this
constructor nor in any functions that it calls.

Also initialize fOffset and fBlockNumber to 0 for good measure.
2017-01-04 19:20:00 -08:00
Axel Dörfler
39f437f77e bfs: Always check if NodeGetter succeeded.
* There were quite a few cases that just assumed that the disk access
  would succeed.
* This also fixes bug #12962.
2017-01-04 23:27:23 +01:00
Axel Dörfler
80d54534fa Coding style cleanup. 2017-01-04 23:26:35 +01:00
Axel Dörfler
9bcf23b1a2 bfs: Made stream code more robust against bad data.
* Avoid divisions by zero. This closes ticket #13094.
2017-01-04 23:25:43 +01:00
Adrien Destugues
7894dfde26 Update sqlite
Fixes subversion complaining that it was built against a newer version.
2017-01-03 19:58:50 +01:00
Humdinger
096d1a4e6a Update BurnItNow to v1.1 2017-01-02 19:21:03 +01:00
Humdinger
4d23ea8e81 Fix css for userguide and welcome page 2017-01-02 19:21:03 +01:00
John Scipione
30f554d464 Make it a bit easier to skip first boot prompt
...by adding default Locale settings to image

Add sample to UserBuildConfig.sample
2017-01-01 16:59:47 -08:00
John Scipione
e1304871bb Revert "BWindow: CenterOnScreen a bit above center"
This reverts commit a5be1832cc.
2017-01-01 12:25:05 -08:00
Adrien Destugues
74d5847f99 Add some explanation to the CD image
This page could be made to look a little better, but at least mention
it is expected to not see much files on the ISO part of the anyboot
image.
2017-01-01 12:44:40 +01:00
Murai Takashi
57db30a752 find_paths.cpp: fix memory leak
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

fixes #13136
2017-01-01 11:38:13 +01:00
Murai Takashi
22e3e14aab TabDecorator.cpp: fix dereference of null pointer
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

fixes #13137
2017-01-01 11:36:36 +01:00
Murai Takashi
80d8697c0e DeskbarMenu.cpp: fix memory leak
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13133
2017-01-01 11:25:56 +01:00
Murai Takashi
dfe2eac4c6 RemoteMessage.cpp: fix memory leak
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13134
2017-01-01 11:20:27 +01:00
Adrien Destugues
6e02aa9d1c NotificationWindow: fix memory leak
Thanks to mt for analysis of the problem. Fixed in a different way from
the original patch.

Fixes #13135.
2017-01-01 11:17:56 +01:00
Mictlantecuhtli
e32c64c113 #11963: Add missing PCI IDs to ipro1000
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-01-01 11:10:12 +01:00
John Scipione
a5be1832cc BWindow: CenterOnScreen a bit above center
BWindow docs: Document changes to CenterOnScreen()

https://68.media.tumblr.com/d8dff7a17b9d90b41e32c5a2a0312513/tumblr_oj2wg1tmKs1r0f0hfo1_1280.png

Will revert if not appreciated.
2016-12-31 18:06:55 -08:00
Jérôme Duval
879db60ae0 Sync x86_64 packages with Haikuports trunk. 2016-12-31 14:09:44 +01:00
Humdinger
ada65d5c36 Updated cdrtools to 3.02~a07 for gcc2 2016-12-30 20:52:57 +01:00
Humdinger
824d380b69 Added new Clipdinger v1.0 package
Release v1.0

Fewer bugs, full of drag&drop.

*   Add clips to favorites and re-ordering favorites with drag & drop.
*   Drag & drop clips and favorites into other apps.
*   Power user feature: holding SHIFT while pasting to sprunge.us keeps window
    open.
*   Made history clips titles editable as well.
*   Made the GUI unambiguous. There's only ever one clip shown as active.
*   Added menu items that apply to clips/favorites, re-ordered context menus.
*   Renamed menu to "Lists" and added item to "Clear favorites".
*   Added Romanian translation. Thanks Emrys!
*   Updated Russian translation. Thanks Diver!
*   Bug fix: Fixed drawing errors of split view handle on resize.
*   Bug fix: Fixed issues when starting without settings file.
*   Bug fix: Fixed crash when trying to paste to sprunge.us with no selection.
*   Bug fix: Put formerly 2nd clip into clipboard when 1st was removed.
*   Bug fix: Correctly show GUI controls availablity (e.g. the move buttons).
2016-12-30 20:01:02 +01:00
Adrien Destugues
1942b3b1ee Missing include.
Make gcc5 happy.
2016-12-30 17:50:06 +01:00
Adrien Destugues
0d7ac5eb20 Accidentally left tracing enabled. 2016-12-30 17:47:30 +01:00
Adrien Destugues
f621b750f6 BSoundFile: implement most of it.
Based on the amazing work of puckipedia, this gets BePac Deluxe to play
fine on Haiku (complete with sound effects and music).

This is based on his original patch, but the irrelevent parts (working
around bugs in ffmpeg that were fixed since then) are removed.

Fixes #9939.
2016-12-30 17:32:48 +01:00
Adrien Destugues
3a530660d0 ffmpeg: use stream frame count, if provided.
Not sure why that was commented out. Computing the frame count back from
the frame duration and stream duration can be inaccurate (especially for
long frame durations and/or short streams). It is important that the
stream ends exactly when expected. If it ends earlier than the announced
frame count, an app may be stuck forever waiting for the end, or would
interpret it as a read error. If it is too long, a buffer overflow may
occur.
2016-12-30 17:30:41 +01:00
Adrien Destugues
b480a593f2 ffmpeg: declare support for AIFF files in the MuxerTable.
There used to be endianness problems, but they have been fixed long ago.
It is important for some legacy apps, that these are properly recognized
as B_AIFF_FORMAT_TYPE.
2016-12-30 17:29:44 +01:00
Adrien Destugues
0963770f62 ffmpeg: update to version 0.10.16.
- This is the latest from the 0.10 branch.
- It includes several improvements and update to codecs, while keeping
  the old API.
- The patch to keep things working with gcc2 is getting quite huge.

Tested working with various files, no regressions spotted so far. Please
help complete the test set if you have files that stop working with this
version.
2016-12-30 16:30:58 +01:00