mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 10:42:46 +02:00
Update to v094r41 release (open beta).
byuu says: Changelog (since the last open beta): - icarus is now included. icarus is used to import game files/archives into game paks (folders) - SNES: mid-scanline BGMODE changes now emulated correctly (used only by atx2.smc Anthrox Demo) - GBA: fixed a CPU bug that was causing dozens of games to have distorted audio - GBA: fixed default FlashROM ID; should allow much higher compatibility - GBA: now using Cydrak's new, much improved, GBA color emulation filter (still a work-in-progress) - re-added command-line loading support for game paks (not for game files/archives, sorry!) - Qt port now compiles and runs again (may be a little buggy; Windows/GTK+ ports preferred) - SNES performance profile now compiles and runs again - much more
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
namespace nall {
|
||||
|
||||
auto image::scale(unsigned outputWidth, unsigned outputHeight, bool linear) -> void {
|
||||
if(!_data) return;
|
||||
if(_width == outputWidth && _height == outputHeight) return; //no scaling necessary
|
||||
if(linear == false) return scaleNearest(outputWidth, outputHeight);
|
||||
|
||||
|
@@ -35,7 +35,8 @@ inline auto range(signed offset, signed size, signed step) {
|
||||
return range_t{offset, size, step};
|
||||
}
|
||||
|
||||
inline auto rangeReverse(signed size) {
|
||||
//reverse-range
|
||||
inline auto rrange(signed size) {
|
||||
return range_t{size - 1, -1, -1};
|
||||
}
|
||||
|
||||
@@ -43,6 +44,10 @@ template<typename T> inline auto range(const vector<T>& container) {
|
||||
return range_t{0, (signed)container.size(), 1};
|
||||
}
|
||||
|
||||
template<typename T> inline auto rrange(const vector<T>& container) {
|
||||
return range_t{(signed)container.size() - 1, -1, -1};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user