dolphin/Source
Lioncash c85e0a2586 FramebufferManagerBase: Return a std::pair from GetTargetSize
Keeps associated data together. It also eliminates the possibility of out
parameters not being initialized properly. For example, consider the
following example:

-- some FramebufferManager implementation --

void FBMgrImpl::GetTargetSize(u32* width, u32* height) override
{
  // Do nothing
}

-- somewhere else where the function is used --

u32 width, height;
framebuffer_manager_instance->GetTargetSize(&width, &height);

if (texture_width != width) <-- Uninitialized variable usage
{
  ...
}

It makes it much more obvious to spot any initialization issues, because
it requires something to be returned, as opposed to allowing an
implementation to just not do anything.
2017-02-03 15:27:53 -05:00
..
Android cmake: Remove PCH support 2017-01-24 03:22:03 +01:00
Core FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
DSPSpy Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DSPTool DSP: Namespace remaining un-namespaced DSP code 2016-12-31 17:20:14 -05:00
PCH Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
UnitTests Merge pull request #4809 from Orphis/cmake_windows 2017-02-03 08:33:13 -05:00
VSProps vs: Move defines out of Common.h to the build system 2017-01-24 03:55:46 +01:00
.clang-format clang-format: Sort windows.h before other headers 2017-01-23 00:35:09 -08:00
CMakeLists.txt CMake: Move Windows defines to Source/CMakeLists.txt 2017-01-27 02:50:49 -08:00
dolphin-emu.sln Implement experimental Vulkan backend 2016-10-01 02:40:01 +10:00