Skip to content

Commit

Permalink
Merge branch 'joncampbell123:master' into sft
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 authored May 31, 2024
2 parents 3cf8a99 + 6adcf63 commit dc82154
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vsbuild_xp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows
contents: write # for actions/checkout to fetch code and softprops/action-gh-release
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: windows-latest
runs-on: windows-2019
defaults:
run:
shell: pwsh
Expand Down
5 changes: 3 additions & 2 deletions src/dos/dos_classes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ void DOS_InfoBlock::SetLocation(uint16_t segment) {
sSave(sDIB,nulString[6],(uint8_t)0x20);
sSave(sDIB,nulString[7],(uint8_t)0x20);

#if 0
#if 1 // FIXME: The new code imported from DOSBox Staging is causing Windows 3.1 to crash on exit, so this old code remains active until that can be fixed
/* Create a fake SFT, so programs think there are 100 file handles */
uint16_t sftOffset=offsetof(sDIB,firstFileTable)+0xa2;
sSave(sDIB,firstFileTable,RealMake(segment,sftOffset));
real_writed(segment,sftOffset+0x00,RealMake(segment+0x26,0)); //Next File Table
real_writew(segment,sftOffset+0x04,DOS_FILES/2); //File Table supports DOS_FILES/2 files
real_writed(segment+0x26,0x00,0xffffffff); //Last File Table
real_writew(segment+0x26,0x04,DOS_FILES-DOS_FILES/2); //File Table supports DOS_FILES/2 files
#endif
#else
/* Imported from dosbox-staging/dosbox-staging#3680 */
constexpr int FakeHandles = 100;
Expand Down Expand Up @@ -162,6 +162,7 @@ void DOS_InfoBlock::SetLocation(uint16_t segment) {
real_writed(second_sft_segment, NextTableOffset, EndPointer);
real_writew(second_sft_segment, NumberOfFilesOffset, FakeHandles);
#endif
}

void DOS_InfoBlock::SetFirstMCB(uint16_t _firstmcb) {
Expand Down
2 changes: 1 addition & 1 deletion vs/sdl/src/video/quartz/SDL_QuartzVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ - (void)drawRect:(NSRect)dirtyRect
[super drawRect:dirtyRect];
CGSize size = [_text size];
[[NSColor whiteColor] set];
NSRectFill(dirtyRect);
NSRectFill(self.bounds);
[_text drawInRect:CGRectMake(0, 0, size.width, size.height)];
}
@end
Expand Down
2 changes: 1 addition & 1 deletion vs/sdl2/src/video/cocoa/SDL_cocoakeyboard.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (void)drawRect:(NSRect)dirtyRect
[super drawRect:dirtyRect];
size = [_text size];
[[NSColor whiteColor] set];
NSRectFill(dirtyRect);
NSRectFill(self.bounds);
[_text drawInRect:CGRectMake(0, 0, size.width, size.height)];
}
@end
Expand Down

0 comments on commit dc82154

Please sign in to comment.