瀏覽代碼

comment on dexdetail_scroll_update

SBird1337 6 年之前
父節點
當前提交
b3298ba295
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/pokedex/pokedex_detail.c

+ 1
- 0
src/pokedex/pokedex_detail.c 查看文件

272
 }
272
 }
273
 
273
 
274
 void dexdetail_scroll_update(void) {
274
 void dexdetail_scroll_update(void) {
275
+    /* base of -24576 + (scroll_amount * pixel_length * 14 pixels) */
275
     bgid_mod_y_offset(1, -24576 + (pokedex_context->detail_scroll_amount * 256 * 14), 0);
276
     bgid_mod_y_offset(1, -24576 + (pokedex_context->detail_scroll_amount * 256 * 14), 0);
276
 }
277
 }
277
 
278