mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-11 22:19:50 +00:00
Why do I end up writing these
This commit is contained in:
+1
-1
@@ -226,7 +226,7 @@ void GB_set_rewind_length(GB_gameboy_t *gb, double seconds)
|
||||
|
||||
void GB_rewind_invalidate_for_backstepping(GB_gameboy_t *gb)
|
||||
{
|
||||
if (gb->rewind_disable_invalidation) return;;
|
||||
if (gb->rewind_disable_invalidation) return;
|
||||
if (gb->rewind_sequences && gb->rewind_sequences[gb->rewind_pos].key_state) {
|
||||
typeof(gb->rewind_sequences[0]) *sequence = &gb->rewind_sequences[gb->rewind_pos];
|
||||
sequence->instruction_count[sequence->pos] |= 0x80000000;
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
{
|
||||
|
||||
[self updateValue:value];
|
||||
return IOHIDDeviceSetReport(_device, kIOHIDReportTypeOutput, _reportID, [_data bytes], [_data length]);;
|
||||
return IOHIDDeviceSetReport(_device, kIOHIDReportTypeOutput, _reportID, [_data bytes], [_data length]);
|
||||
}
|
||||
|
||||
- (void)updateValue:(NSData *)value
|
||||
|
||||
@@ -42,7 +42,7 @@ static inline float4 texture(texture2d<half> texture, float2 pos)
|
||||
|
||||
__attribute__((unused)) static inline float4 texture_relative(texture2d<half> t, float2 pos, float2 offset)
|
||||
{
|
||||
float2 input_resolution = float2(t.get_width(), t.get_height());;
|
||||
float2 input_resolution = float2(t.get_width(), t.get_height());
|
||||
float2 origin = (floor(pos * input_resolution)) + float2(0.5, 0.5);
|
||||
return texture(t, (origin + offset) / input_resolution);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user