[dfont] Minor
This commit is contained in:
parent
07e0ca930c
commit
82f4d776c2
|
@ -305,7 +305,7 @@ struct ResourceRecord
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
HBUINT16 id; /* Resource ID, is really should be signed? */
|
HBUINT16 id; /* Resource ID. */
|
||||||
HBINT16 nameOffset; /* Offset from beginning of resource name list
|
HBINT16 nameOffset; /* Offset from beginning of resource name list
|
||||||
* to resource name, -1 means there is none. */
|
* to resource name, -1 means there is none. */
|
||||||
HBUINT8 attrs; /* Resource attributes */
|
HBUINT8 attrs; /* Resource attributes */
|
||||||
|
@ -400,7 +400,7 @@ struct ResourceForkHeader
|
||||||
{
|
{
|
||||||
const ResourceMap &resource_map = this+map;
|
const ResourceMap &resource_map = this+map;
|
||||||
unsigned int count = resource_map.get_type_count ();
|
unsigned int count = resource_map.get_type_count ();
|
||||||
for (unsigned int i = 0; i < count; ++i)
|
for (unsigned int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
const ResourceTypeRecord& type = resource_map.get_type_record (i);
|
const ResourceTypeRecord& type = resource_map.get_type_record (i);
|
||||||
if (type.is_sfnt ())
|
if (type.is_sfnt ())
|
||||||
|
@ -421,7 +421,7 @@ struct ResourceForkHeader
|
||||||
unsigned int *base_offset = nullptr) const
|
unsigned int *base_offset = nullptr) const
|
||||||
{
|
{
|
||||||
const ResourceMap &resource_map = this+map;
|
const ResourceMap &resource_map = this+map;
|
||||||
for (unsigned int i = 0; i < resource_map.get_type_count (); ++i)
|
for (unsigned int i = 0; i < resource_map.get_type_count (); i++)
|
||||||
{
|
{
|
||||||
const ResourceTypeRecord& type = resource_map.get_type_record (i);
|
const ResourceTypeRecord& type = resource_map.get_type_record (i);
|
||||||
if (type.is_sfnt () && idx < type.get_resource_count ())
|
if (type.is_sfnt () && idx < type.get_resource_count ())
|
||||||
|
|
Loading…
Reference in New Issue