More VS fixes
Former-commit-id: 356effb816b9527ff9e89ee3b99074c468455b08
This commit is contained in:
@@ -302,9 +302,9 @@ void NzFont::SetAtlas(const std::shared_ptr<NzAbstractAtlas>& atlas)
|
||||
m_atlas = atlas;
|
||||
if (m_atlas)
|
||||
{
|
||||
m_atlasClearedSlot.Connect(m_atlas->OnAtlasCleared, this, OnAtlasCleared);
|
||||
m_atlasLayerChangeSlot.Connect(m_atlas->OnAtlasLayerChange, this, OnAtlasLayerChange);
|
||||
m_atlasReleaseSlot.Connect(m_atlas->OnAtlasRelease, this, OnAtlasRelease);
|
||||
m_atlasClearedSlot.Connect(m_atlas->OnAtlasCleared, this, &NzFont::OnAtlasCleared);
|
||||
m_atlasLayerChangeSlot.Connect(m_atlas->OnAtlasLayerChange, this, &NzFont::OnAtlasLayerChange);
|
||||
m_atlasReleaseSlot.Connect(m_atlas->OnAtlasRelease, this, &NzFont::OnAtlasRelease);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -303,7 +303,7 @@ namespace
|
||||
m_stream.descriptor.pointer = &stream;
|
||||
m_stream.read = FT_StreamRead;
|
||||
m_stream.pos = 0;
|
||||
m_stream.size = stream.GetSize();
|
||||
m_stream.size = unsigned long(stream.GetSize());
|
||||
|
||||
m_args.driver = 0;
|
||||
m_args.flags = FT_OPEN_STREAM;
|
||||
|
||||
@@ -644,7 +644,7 @@ unsigned int NzImage::GetHeight(nzUInt8 level) const
|
||||
|
||||
nzUInt8 NzImage::GetLevelCount() const
|
||||
{
|
||||
return m_sharedImage->levels.size();
|
||||
return nzUInt8(m_sharedImage->levels.size());
|
||||
}
|
||||
|
||||
nzUInt8 NzImage::GetMaxLevel() const
|
||||
@@ -1087,7 +1087,7 @@ void NzImage::SetLevelCount(nzUInt8 levelCount)
|
||||
|
||||
EnsureOwnership();
|
||||
|
||||
nzUInt8 oldLevelCount = m_sharedImage->levels.size();
|
||||
nzUInt8 oldLevelCount = nzUInt8(m_sharedImage->levels.size());
|
||||
nzUInt8 maxLevelCount = std::max(levelCount, oldLevelCount);
|
||||
|
||||
m_sharedImage->levels.resize(levelCount);
|
||||
|
||||
@@ -114,10 +114,10 @@ void NzSimpleTextDrawer::SetFont(NzFont* font)
|
||||
m_font = font;
|
||||
if (m_font)
|
||||
{
|
||||
m_atlasChangedSlot.Connect(m_font->OnFontAtlasChanged, this, OnFontInvalidated);
|
||||
m_atlasLayerChangedSlot.Connect(m_font->OnFontAtlasLayerChanged, this, OnFontInvalidated);
|
||||
m_fontReleaseSlot.Connect(m_font->OnFontRelease, this, OnFontRelease);
|
||||
m_glyphCacheClearedSlot.Connect(m_font->OnFontAtlasChanged, this, OnFontInvalidated);
|
||||
m_atlasChangedSlot.Connect(m_font->OnFontAtlasChanged, this, &NzSimpleTextDrawer::OnFontInvalidated);
|
||||
m_atlasLayerChangedSlot.Connect(m_font->OnFontAtlasLayerChanged, this, &NzSimpleTextDrawer::OnFontInvalidated);
|
||||
m_fontReleaseSlot.Connect(m_font->OnFontRelease, this, &NzSimpleTextDrawer::OnFontRelease);
|
||||
m_glyphCacheClearedSlot.Connect(m_font->OnFontAtlasChanged, this, &NzSimpleTextDrawer::OnFontInvalidated);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#ifndef NAZARA_CURSORIMPL_HPP
|
||||
#define NAZARA_CURSORIMPL_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
class NzImage;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#ifndef NAZARA_ICONIMPL_HPP
|
||||
#define NAZARA_ICONIMPL_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
class NzImage;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#ifndef NAZARA_WINDOWIMPL_HPP
|
||||
#define NAZARA_WINDOWIMPL_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/NonCopyable.hpp>
|
||||
#include <Nazara/Core/String.hpp>
|
||||
#include <Nazara/Core/Thread.hpp>
|
||||
|
||||
Reference in New Issue
Block a user