Why do I end up writing these

This commit is contained in:
Lior Halphon
2025-04-03 23:52:04 +03:00
parent 71d4e60c57
commit d146b3a309
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);
}