mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 18:56:38 +00:00 
			
		
		
		
	Merge branch 'master' of https://github.com/zinnschlag/openmw into graphics
This commit is contained in:
		
						commit
						3135482cee
					
				
					 9 changed files with 30 additions and 23 deletions
				
			
		|  | @ -529,6 +529,8 @@ if (WIN32) | |||
|         set(WARNINGS "${WARNINGS} /wd${d}") | ||||
|     endforeach(d) | ||||
| 
 | ||||
|     set_target_properties(shiny PROPERTIES COMPILE_FLAGS ${WARNINGS}) | ||||
|     set_target_properties(shiny.OgrePlatform PROPERTIES COMPILE_FLAGS ${WARNINGS}) | ||||
|     set_target_properties(components PROPERTIES COMPILE_FLAGS ${WARNINGS}) | ||||
|     if (BUILD_LAUNCHER) | ||||
| 		set_target_properties(omwlauncher PROPERTIES COMPILE_FLAGS ${WARNINGS}) | ||||
|  |  | |||
|  | @ -16,7 +16,7 @@ CSVDoc::Operations::Operations() | |||
| 
 | ||||
|     widgetContainer->setLayout (mLayout); | ||||
|     setWidget (widgetContainer); | ||||
| 
 | ||||
|     setVisible (false); | ||||
|     setFixedHeight (widgetContainer->height()); | ||||
|     setTitleBarWidget (new QWidget (this)); | ||||
| } | ||||
|  | @ -42,6 +42,8 @@ void CSVDoc::Operations::setProgress (int current, int max, int type, int thread | |||
| 
 | ||||
|     if ( oldCount > 0) | ||||
|         setFixedHeight (height()/oldCount * newCount); | ||||
| 
 | ||||
|     setVisible (true); | ||||
| } | ||||
| 
 | ||||
| void CSVDoc::Operations::quitOperation (int type) | ||||
|  | @ -59,6 +61,8 @@ void CSVDoc::Operations::quitOperation (int type) | |||
| 
 | ||||
|             if (oldCount > 1) | ||||
|                 setFixedHeight (height() / oldCount * newCount); | ||||
|             else | ||||
|                 setVisible (false); | ||||
| 
 | ||||
|             break; | ||||
|         } | ||||
|  |  | |||
|  | @ -25,7 +25,7 @@ namespace | |||
|             const MWWorld::Class& class_ = | ||||
|                 MWWorld::Class::get (MWWorld::Ptr (&*cellRefList.mList.begin(), &cell)); | ||||
| 
 | ||||
|             int numRefs = cellRefList.mList.size(); | ||||
|             size_t numRefs = cellRefList.mList.size(); | ||||
|             int current = 0; | ||||
|             for (typename T::List::iterator it = cellRefList.mList.begin(); | ||||
|                 it != cellRefList.mList.end(); it++) | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ namespace MWWorld | |||
|         virtual void setUp() {} | ||||
|         virtual void listIdentifier(std::vector<std::string> &list) const {} | ||||
| 
 | ||||
|         virtual int getSize() const = 0; | ||||
|         virtual size_t getSize() const = 0; | ||||
|         virtual void load(ESM::ESMReader &esm, const std::string &id) = 0; | ||||
|          | ||||
|         virtual bool eraseStatic(const std::string &id) {return false;} | ||||
|  | @ -158,7 +158,7 @@ namespace MWWorld | |||
|             return mShared.end(); | ||||
|         } | ||||
| 
 | ||||
|         int getSize() const { | ||||
|         size_t getSize() const { | ||||
|             return mShared.size(); | ||||
|         } | ||||
| 
 | ||||
|  | @ -269,11 +269,11 @@ namespace MWWorld | |||
|             return ptr; | ||||
|         } | ||||
| 
 | ||||
|         int getSize() const { | ||||
|         size_t getSize() const { | ||||
|             return mStatic.size(); | ||||
|         } | ||||
| 
 | ||||
|         int getSize(size_t plugin) const { | ||||
|         size_t getSize(size_t plugin) const { | ||||
|             assert(plugin < mStatic.size()); | ||||
|             return mStatic[plugin].size(); | ||||
|         } | ||||
|  | @ -338,7 +338,7 @@ namespace MWWorld | |||
| 
 | ||||
|         } | ||||
| 
 | ||||
|         int getSize() const { | ||||
|         size_t getSize() const { | ||||
|             return mStatic.size(); | ||||
|         } | ||||
| 
 | ||||
|  | @ -567,7 +567,7 @@ namespace MWWorld | |||
|             return 0; | ||||
|         } | ||||
| 
 | ||||
|         int getSize() const { | ||||
|         size_t getSize() const { | ||||
|             return mSharedInt.size() + mSharedExt.size(); | ||||
|         } | ||||
| 
 | ||||
|  | @ -701,7 +701,7 @@ namespace MWWorld | |||
|             mStatic.back().load(esm); | ||||
|         } | ||||
| 
 | ||||
|         int getSize() const { | ||||
|         size_t getSize() const { | ||||
|             return mStatic.size(); | ||||
|         } | ||||
| 
 | ||||
|  | @ -930,7 +930,7 @@ namespace MWWorld | |||
|             } | ||||
|         } | ||||
| 
 | ||||
|         int getSize() const { | ||||
|         size_t getSize() const { | ||||
|             return mStatic.size(); | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
|  | @ -136,15 +136,15 @@ void ESMWriter::writeHNString(const std::string& name, const std::string& data) | |||
|     endRecord(name); | ||||
| } | ||||
| 
 | ||||
| void ESMWriter::writeHNString(const std::string& name, const std::string& data, int size) | ||||
| void ESMWriter::writeHNString(const std::string& name, const std::string& data, size_t size) | ||||
| { | ||||
|     assert(static_cast<int> (data.size()) <= size); | ||||
|     assert(data.size() <= size); | ||||
|     startSubRecord(name); | ||||
|     writeHString(data); | ||||
| 
 | ||||
|     if (static_cast<int> (data.size()) < size) | ||||
|     if (data.size() < size) | ||||
|     { | ||||
|         for (int i = data.size(); i < size; ++i) | ||||
|         for (size_t i = data.size(); i < size; ++i) | ||||
|             write("\0",1); | ||||
|     } | ||||
| 
 | ||||
|  | @ -177,7 +177,7 @@ void ESMWriter::writeName(const std::string& name) | |||
|     write(name.c_str(), name.size()); | ||||
| } | ||||
| 
 | ||||
| void ESMWriter::write(const char* data, int size) | ||||
| void ESMWriter::write(const char* data, size_t size) | ||||
| { | ||||
|     if (count && !m_records.empty()) | ||||
|     { | ||||
|  |  | |||
|  | @ -16,7 +16,7 @@ class ESMWriter | |||
|     { | ||||
|         std::string name; | ||||
|         std::streampos position; | ||||
|         int size; | ||||
|         size_t size; | ||||
|     }; | ||||
| 
 | ||||
| public: | ||||
|  | @ -35,7 +35,7 @@ public: | |||
|     void close(); | ||||
| 
 | ||||
|     void writeHNString(const std::string& name, const std::string& data); | ||||
|     void writeHNString(const std::string& name, const std::string& data, int size); | ||||
|     void writeHNString(const std::string& name, const std::string& data, size_t size); | ||||
|     void writeHNCString(const std::string& name, const std::string& data) | ||||
|     { | ||||
|         startSubRecord(name); | ||||
|  | @ -76,7 +76,7 @@ public: | |||
|     } | ||||
| 
 | ||||
|     template<typename T> | ||||
|     void writeT(const T& data, int size) | ||||
|     void writeT(const T& data, size_t size) | ||||
|     { | ||||
|         write((char*)&data, size); | ||||
|     } | ||||
|  | @ -87,7 +87,7 @@ public: | |||
|     void writeHString(const std::string& data); | ||||
|     void writeHCString(const std::string& data); | ||||
|     void writeName(const std::string& data); | ||||
|     void write(const char* data, int size); | ||||
|     void write(const char* data, size_t size); | ||||
| 
 | ||||
| private: | ||||
|     std::list<MasterData> m_masters; | ||||
|  |  | |||
|  | @ -70,7 +70,7 @@ Utf8Encoder::Utf8Encoder(const FromType sourceEncoding): | |||
|     } | ||||
| } | ||||
| 
 | ||||
| std::string Utf8Encoder::getUtf8(const char* input, int size) | ||||
| std::string Utf8Encoder::getUtf8(const char* input, size_t size) | ||||
| { | ||||
|     // Double check that the input string stops at some point (it might
 | ||||
|     // contain zero terminators before this, inside its own data, which
 | ||||
|  | @ -111,7 +111,7 @@ std::string Utf8Encoder::getUtf8(const char* input, int size) | |||
|     return std::string(&mOutput[0], outlen); | ||||
| } | ||||
| 
 | ||||
| std::string Utf8Encoder::getLegacyEnc(const char *input, int size) | ||||
| std::string Utf8Encoder::getLegacyEnc(const char *input, size_t size) | ||||
| { | ||||
|     // Double check that the input string stops at some point (it might
 | ||||
|     // contain zero terminators before this, inside its own data, which
 | ||||
|  |  | |||
|  | @ -27,13 +27,13 @@ namespace ToUTF8 | |||
|             Utf8Encoder(FromType sourceEncoding); | ||||
| 
 | ||||
|             // Convert to UTF8 from the previously given code page.
 | ||||
|             std::string getUtf8(const char *input, int size); | ||||
|             std::string getUtf8(const char *input, size_t size); | ||||
|             inline std::string getUtf8(const std::string &str) | ||||
|             { | ||||
|                 return getUtf8(str.c_str(), str.size()); | ||||
|             } | ||||
| 
 | ||||
|             std::string getLegacyEnc(const char *input, int size); | ||||
|             std::string getLegacyEnc(const char *input, size_t size); | ||||
|             inline std::string getLegacyEnc(const std::string &str) | ||||
|             { | ||||
|                 return getLegacyEnc(str.c_str(), str.size()); | ||||
|  |  | |||
|  | @ -40,6 +40,7 @@ Nikolay Kasyanov (corristo) | |||
| Pieter van der Kloet (pvdk) | ||||
| Roman Melnik (Kromgart) | ||||
| Sebastian Wick (swick) | ||||
| Sergey Shambir | ||||
| Sylvain T. (Garvek) | ||||
| Tom Mason (wheybags) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue