GUI: why is the range wrong

This commit is contained in:
tildearrow 2023-08-10 00:31:29 -05:00
parent 2a0d76563d
commit be06fe2400
1 changed files with 1 additions and 1 deletions

View File

@ -1609,7 +1609,7 @@ void FurnaceGUI::drawSampleEdit() {
posX=samplePos+pos.x*sampleZoom;
if (posX>(int)sample->samples) posX=-1;
}
posY=(0.5-pos.y/rectSize.y)*((sample->depth==DIV_SAMPLE_DEPTH_8BIT)?255:32767);
posY=(0.5-pos.y/rectSize.y)*((sample->depth==DIV_SAMPLE_DEPTH_8BIT)?255:65535);
if (posX>=0) {
statusBar2=fmt::sprintf("(%d, %d)",posX,posY);
}