1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 13:07:40 +00:00

nilrider:: recording if CAP_VIDEO is available

This commit is contained in:
Zeno Rogue
2022-05-09 14:45:57 +02:00
parent da5a17f8df
commit 0f1f4ce99b
2 changed files with 32 additions and 2 deletions

View File

@@ -95,6 +95,10 @@ void level::compute_plan_transform() {
void level::draw_planning_screen() {
if(just_refreshing) return;
if(inHighQual) {
new_levellines_for = mousept = current.where;
}
curlev->init_textures();
dynamicval<eGeometry> g(geometry, gEuclid);
dynamicval<eModel> pm(pmodel, mdDisk);
@@ -119,9 +123,9 @@ void level::draw_planning_screen() {
return h;
};
mousept = scr_to_map(hpxy(mousex, mousey));
if(!inHighQual) mousept = scr_to_map(hpxy(mousex, mousey));
box = scr_to_map(hpxy(mousex + 5, mousey))[0] - mousept[0];
box = inHighQual ? scr_to_map(hpxy(10, 0))[0] - scr_to_map(hpxy(0,0))[0] : scr_to_map(hpxy(mousex + 5, mousey))[0] - mousept[0];
/* draw the map */
auto& p = queuepolyat(T, shPlanFloor, 0xFFFFFFFF, PPR::FLOOR);