History log of /haiku/src/add-ons/screen_savers/icons/IconsSaver.cpp
Revision Date Author Comments
# fd61ca46 19-Apr-2021 Murai Takashi <tmurai01@gmail.com>

icons screen saver: fix memory leak

Fix fBackBitmap and items of fVectorIcons were not released.

Change-Id: I8bf974a9f11852c4b1092490e699b46bd79997eb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3879
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# e9208b68 13-Apr-2016 John Scipione <jscipione@gmail.com>

ScreenSaver: Rename BuildScreenSaverDefaultSettingsView

...to just DefaultSettingsView

It is just as obvious what it does in context, but shorter.

Rename the function it contains from
BuildDefaultScreenSaverSettingsView to
BuildDefaultSettingsView


# 2baa894c 13-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

icons screensaver: double free when in RandomSaver

RandomSaver apparently calls StopSaver two times, and Icons was having a
double free in that case.

Fixes #10957.


# 051d89e1 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: bump max icon count to 384

300 wasn’t enough


# 8165696e 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: fix potential memory leak

delete icon doesn’t do anything, delete[] data does.


# 4a0dcb5b 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: remove extra space


# 1c56a03c 24-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Get icons from MIME db again

The previous method only queried application icons, not document icons.

Unfortunately, the app icons in the MIME DB are broken/not present.
IconsSaver only displays document icons for the time being.

Because of better error checking the garbled icons are filtered out though
at least.

Next step is to fix the application icons in the MIME DB.

Some other changes:
* Don't draw if the BBitmap was not filled out correctly
* Add Vincent Duvert to authors list, he's already in copyright
* Convert fVectorIcons from a BList to a BObjectList
* Put vector_icon struct in it’s own header (needed for above)
* Remove type param from vector_icon struct
* Bump max icon count to 300, hopefully this should be enough, 128
is too few for app and document icons in default install.


# 0def0b0d 22-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Grab vector icons via query, fixes #10166

Iterate through each BFS volume and find vector icon data in apps
using a BFS query. Cap off at 128 total icons, we could get more if
desired. Default install comes with ~100 at present.

Make sure we have at least 20 icons (15 display at a time) before we
start drawing icons.

Rename VectorIcon to vector_icon and treat it like the POD struct that it is.
Also add a type_code parame to vector_icon that should be set to
B_VECTOR_ICON.

Some style fixes also included, e.g. turned defines into static const int32’s.


# 3cbb1132 22-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Style fixes only


# 05cf63e3 22-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Update copyright header and version

Add myself to authors, assign copyright to Haiku, Inc.

Bump version to 1.0.1-final, update short and long description


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 044f12ae 06-Mar-2011 Joachim Seemer <humdingerb@googlemail.com>

Localization of screensavers. Fixes #7326.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40848 a95241bf-73f2-0310-859d-f6bbb57e9c96


# edbcbaa6 01-Oct-2009 Ryan Leavengood <leavengood@gmail.com>

Updated the screensavers Haiku, Icons and Message to use the new default
settings view function.
Also some clean-up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 32b3986c 24-Sep-2009 Philippe Houdoin <philippe.houdoin@gmail.com>

Added a very nice Icons screensaver, by Vincent Duvert.
Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33268 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2baa894c767eb396a901d19a1a4d54d3f5dc47b0 13-Oct-2014 Adrien Destugues <pulkomandy@gmail.com>

icons screensaver: double free when in RandomSaver

RandomSaver apparently calls StopSaver two times, and Icons was having a
double free in that case.

Fixes #10957.


# 051d89e19c3d6ceb35d44805be2599ef875ad71c 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: bump max icon count to 384

300 wasn’t enough


# 8165696e0217ddad7438ea9341badaae2ca28158 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: fix potential memory leak

delete icon doesn’t do anything, delete[] data does.


# 4a0dcb5bfae79977f0c925f173bb4e3a11f12a6b 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: remove extra space


# 1c56a03c51fe268636ec1f48d067fa82f7082b1e 24-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Get icons from MIME db again

The previous method only queried application icons, not document icons.

Unfortunately, the app icons in the MIME DB are broken/not present.
IconsSaver only displays document icons for the time being.

Because of better error checking the garbled icons are filtered out though
at least.

Next step is to fix the application icons in the MIME DB.

Some other changes:
* Don't draw if the BBitmap was not filled out correctly
* Add Vincent Duvert to authors list, he's already in copyright
* Convert fVectorIcons from a BList to a BObjectList
* Put vector_icon struct in it’s own header (needed for above)
* Remove type param from vector_icon struct
* Bump max icon count to 300, hopefully this should be enough, 128
is too few for app and document icons in default install.


# 0def0b0d621f3c051375d11826b6143272dcc9b9 22-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Grab vector icons via query, fixes #10166

Iterate through each BFS volume and find vector icon data in apps
using a BFS query. Cap off at 128 total icons, we could get more if
desired. Default install comes with ~100 at present.

Make sure we have at least 20 icons (15 display at a time) before we
start drawing icons.

Rename VectorIcon to vector_icon and treat it like the POD struct that it is.
Also add a type_code parame to vector_icon that should be set to
B_VECTOR_ICON.

Some style fixes also included, e.g. turned defines into static const int32’s.


# 3cbb1132f803048060fed885dee47c96047b857f 22-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Style fixes only


# 05cf63e3a734264c6a7d2ba3ca1d2e8b80945f9b 22-Jan-2014 John Scipione <jscipione@gmail.com>

Icons Screensaver: Update copyright header and version

Add myself to authors, assign copyright to Haiku, Inc.

Bump version to 1.0.1-final, update short and long description


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 044f12ae62ec55b96597670cce5635f79dcc4526 06-Mar-2011 Joachim Seemer <humdingerb@googlemail.com>

Localization of screensavers. Fixes #7326.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40848 a95241bf-73f2-0310-859d-f6bbb57e9c96


# edbcbaa6317a2fa5905f71b6b9f40dab7e9c5dda 01-Oct-2009 Ryan Leavengood <leavengood@gmail.com>

Updated the screensavers Haiku, Icons and Message to use the new default
settings view function.
Also some clean-up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 32b3986c09e9a1d9dcbebd35fdcf3d63f6c08780 24-Sep-2009 Philippe Houdoin <philippe.houdoin@gmail.com>

Added a very nice Icons screensaver, by Vincent Duvert.
Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33268 a95241bf-73f2-0310-859d-f6bbb57e9c96