Comments (8)
2edbcc1 fixes this for all latest versions
from thcrap-tsa.
Fixed the fullscreen switching in thpatch/thcrap@c807a61ba0
Works on my machine, stops working on @nmlgc 's machine after switching fullscreen to window. (UPD2: because his drivers are trash)
UPD: [11:13 PM] Nmlgc: Next problem: F10 to cycle between the modes doesn't work anymore in TH11-TH13. Simply continues rendering in 640×480 fullscreen on the first monitor and shows a black window in the active window on the second monitor.
UPD2: disregard that.
from thcrap-tsa.
This seems to be a rather common issue among Windows applications in general, as I've also encountered it with DOSBox and Neko Project II. Maybe these are just GPU hardware or driver issues on my end?
from thcrap-tsa.
A while ago I've tried to fix this bug, but I didn't succeed. My guess was that the game doesn't handle lost devices the right way. It seems like the game indeed doesn't do it properly, but it isn't a problem most of the time, because modern versions of d3d9 don't lose device when you alt-tab or alt-enter, etc. It still happens, however, when you do win+L or ctrl+alt+del. That's not the actual reason though, after applying my fix, the game still crashes somewhere around texture (re)initialization.
One thing I haven't got around to test is wether or not the game will crash under XP (with original d3d9 installed) when alt-tabbing from full screen.
Here's the aforementioned fix: DankRank/thcrap@42e7b152
The BP_devicelost is supposed to replace a call to IDirect3DDevice9::Reset.
p.s. Everything I mention applies to LoLK, as I haven't looked at the other games (except DDC), but I'd assume that the problem is same.
p.p.s. I will post relevant memory locations for LoLK (and maybe DDC, if I still have those saved) later.
from thcrap-tsa.
Found my old stuff for LoLK v1.00b
stack trace:
0044F349 - crash happens here (inside sub_44F300)
called at 00472981 (inside sub_472940)
called at 00472913 (inside sub_472790)
called at 00471AB7 (inside sub_471340, looks like WinMain)
Patch for the BP_devicelost, mentioned in previous post.
th15.js
{
"breakpoints": {
"devicelost": {
"cavesize": "5"
}
}
}
th15.v1.00b.js
{
"breakpoints":{
"devicelost":{
"addr": "Rx72972"
}
}
}
from thcrap-tsa.
Reopening, since the fix doesn't work on all machines apparently.
from thcrap-tsa.
Should be fixed as of thpatch/thcrap@cb3404cdd
UPD: that fix breaks switching between fullscreen and windowed for some reason.
from thcrap-tsa.
Turned out to be a graphics driver issue on my end, and no remaining bugs in here after all.
In case anyone else has a similar issue with a AMD Radeon GPU (R7 260X in my case): TH14 and later used to not be displayed correctly in fullscreen mode. On startup, the screen flashed for a few seconds as Direct3D tried to change the display mode and failed. After that, the game was rendered at its native resolution in the top-left corner of my first monitor, with the rest of the screen filled with black, like this:
The fix: Catalyst Control Center → My Digital Flat-Planels → (the display Touhou appears on) → Image Scaling Prefences → Disable GPU up-scaling.
from thcrap-tsa.
Related Issues (20)
- Fix low FPS if a mouse, graphics tablet, or game controller is plugged in HOT 5
- TH08: MIDI BGM ignores the BGM volume setting
- TH06/TH07: Glitched input if game window was out of focus during the loading screen HOT 1
- TH09: Don't play the title screen BGM for a few milliseconds before switching to the conversation BGM HOT 1
- TH10: the base_tsa patch seemingly distorts position of hint
- Update real_bullet_size for unsupported games
- TH18tr: Character portraits aren't properly aligned when replaced HOT 4
- TH13 - TH17: Clear bonus doesn't get added to score when watching replay
- [MoF] Some replays end prematurely due to stage practice replay crash fix HOT 5
- TH10: script_latin breaks hints
- TH18: Gluttonous Centipede desyncs multi-stage replays
- TH175: Flandre's Scenario/355/en translation isn't showing up in-game HOT 2
- TH09: Why is this font wrong? HOT 3
- make zun's mutex error message translatable
- prevent zun's mutex from resetting the config HOT 2
- TH18 custom.exe: Translations not supported HOT 1
- EoSD spell card result text glitch
- TH07/???: Game seems to be constantly creating and destroying it's window if the cfg file is 0 bytes
- TH185: character names on the market selection screen, from world.txt
- TH185/???: Game will create window outside the space available by monitors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thcrap-tsa.