mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
ImageValueEditor; slice window; fixed bug in resample
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@97 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -93,8 +93,8 @@ void resample_pass(const Image& img_in, Image& img_out, int offset_in, int offse
|
||||
if (out_rem > 0) {
|
||||
// eat a partial input pixel
|
||||
totR += in[0] * out_rem;
|
||||
totR += in[1] * out_rem;
|
||||
totR += in[2] * out_rem;
|
||||
totG += in[1] * out_rem;
|
||||
totB += in[2] * out_rem;
|
||||
in_rem -= out_rem;
|
||||
}
|
||||
// store
|
||||
|
||||
Reference in New Issue
Block a user