mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-03 06:13:23 +02:00
Update to v094r24 release.
byuu says: Finally!! Compilation works once again on Windows. However, it's pretty buggy. Modality isn't really working right, you can still poke at other windows, but when you select ListView items, they redraw as empty boxes (need to process WM_DRAWITEM before checking modality.) The program crashes when you close it (probably a ruby driver's term() function, that's what it usually is.) The Layout::setEnabled(false) call isn't working right, so you get that annoying chiming sound and cursor movement when mapping keyboard keys to game inputs. The column sizing seems off a bit on first display for the Hotkeys tab. And probably lots more.
This commit is contained in:
@@ -19,11 +19,11 @@ struct image {
|
||||
unsigned depth;
|
||||
unsigned shift;
|
||||
|
||||
inline bool operator==(const channel& source) {
|
||||
inline bool operator==(const channel& source) const {
|
||||
return mask == source.mask && depth == source.depth && shift == source.shift;
|
||||
}
|
||||
|
||||
inline bool operator!=(const channel& source) {
|
||||
inline bool operator!=(const channel& source) const {
|
||||
return !operator==(source);
|
||||
}
|
||||
};
|
||||
@@ -48,8 +48,8 @@ struct image {
|
||||
|
||||
//core.hpp
|
||||
inline explicit operator bool() const;
|
||||
inline bool operator==(const image& source);
|
||||
inline bool operator!=(const image& source);
|
||||
inline bool operator==(const image& source) const;
|
||||
inline bool operator!=(const image& source) const;
|
||||
|
||||
inline image& operator=(const image& source);
|
||||
inline image& operator=(image&& source);
|
||||
|
@@ -7,7 +7,7 @@ image::operator bool() const {
|
||||
return !empty();
|
||||
}
|
||||
|
||||
bool image::operator==(const image& source) {
|
||||
bool image::operator==(const image& source) const {
|
||||
if(width != source.width) return false;
|
||||
if(height != source.height) return false;
|
||||
if(pitch != source.pitch) return false;
|
||||
@@ -23,11 +23,12 @@ bool image::operator==(const image& source) {
|
||||
return memcmp(data, source.data, width * height * stride) == 0;
|
||||
}
|
||||
|
||||
bool image::operator!=(const image& source) {
|
||||
bool image::operator!=(const image& source) const {
|
||||
return !operator==(source);
|
||||
}
|
||||
|
||||
image& image::operator=(const image& source) {
|
||||
if(this == &source) return *this;
|
||||
free();
|
||||
|
||||
width = source.width;
|
||||
@@ -49,6 +50,7 @@ image& image::operator=(const image& source) {
|
||||
}
|
||||
|
||||
image& image::operator=(image&& source) {
|
||||
if(this == &source) return *this;
|
||||
free();
|
||||
|
||||
width = source.width;
|
||||
|
Reference in New Issue
Block a user